Hi,
I use the shareFiles method in a very simple example:
final tempDir = await getTemporaryDirectory();
final Uint8List fileContent = <someBytes>
final targetPath =
"${tempDir.path}${"/$fileNameForFile${h4uFileType.fileExtension}"}";
File(targetPath).writeAsBytesSync(fileContent);
await Share.shareFiles([targetPath], text: text, subject: subject);
When I share a pdf file on my iPhone and then select the iOS option "Save to Files" two documents are saved to the selected directory. One file is the expected pdf file and the other an empty document called "Text":

Any help for this issue?
Thanks in advance!
Best regards
Hi,
I use the shareFiles method in a very simple example:
When I share a pdf file on my iPhone and then select the iOS option "Save to Files" two documents are saved to the selected directory. One file is the expected pdf file and the other an empty document called "Text":

Any help for this issue?
Thanks in advance!
Best regards