flet-dev / flet

Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
https://flet.dev
Apache License 2.0
9.59k stars 372 forks source link

file picker does not working in android phone #3320

Open ibrahimkimaro opened 2 weeks ago

ibrahimkimaro commented 2 weeks ago

testing normal in window: if i select image and does not use open() module and read that image the image go into backend with changed image and it didn't open in browser but i was use open() module and i have send the image it clear and save also displayed in browser Testing in android phone: When i have been selected the image in my android device the image change name and saved in backend then didn't display but if i have use the open() module the error:

content = open(file_name, 'rb+') ^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/data/user/0/com.appveyor.flet/cache/file_picker/IMG-20240516-WA0051.jpg' .. This is the error i got when i try to open the image file using android device ...what i can handle this situation?