flet-dev / examples

Flet sample applications
MIT License
488 stars 199 forks source link

Unable to Upload file on IOS using FilePicker #109

Open Michel7GitHub opened 11 months ago

Michel7GitHub commented 11 months ago

From IOS (Ipad & Iphone), I want to save files (upload) using FilePicker. I downloaded examples/python/controls/file-picker/file-picker-all-modes.py from Github. The Python example works well on my desktop (Windows). On IOS, "Pick files" works well, but ... Trying "Save file", IOS Files app popup manager doesn't open. Trying "Open directory, IOS Files app popup manager opens, by Flet crash without any message when I try (click) to open a directory.

rebeatle commented 8 months ago

From https://flet.dev/docs/guides/python/file-picker-and-uploads

When running Flet app in a browser only "Pick files" option is available and it's used for uploads only as it, obviously, doesn't return a full path to a selected file.

I am having the same isu but with Android. For some reason file picker is not unable to get the path . It is supposed to get the file content in memory so u can upload "the contents" of that file ( in this case a image ). I already make some test and isn't working . I will update this comment if I get something new.