Skip to content

You can not save this document with extension ".pdf" at the end of the name. The required extension is "..pdf"

Hello

I try to save a file on Mac with file_picker_cross 4.2.6

This is how i get the file:

onPressed: () async {
                            controller.fileResult =
                                await FilePickerCross.importFromStorage(
                                    type: FileTypeCross.any);
                            if (!controller.fileResult.isNullOrBlank)
                              controller.filePath = controller.fileResult.path;
                            controller.update();
                          },

and thats how I want to save it:

onPressed: () async {
                              controller.fileResult.exportToStorage();
                            },

But unfortunately on saving the file to new location, it says I can't save with this ending. Instead i should use ending with two points before. Bildschirmfoto_2020-11-11_um_13.24.28

PS: I use it along GetX.

Best regards Marc