I'm using the image picker plugin for flutter. Whenever I pick an image from the gallery, it is assigned a random name by the plugin, starting with 'image_picker.' How can I get the original name of the image file?
-
you cannot - every time a new temporary image is created (at least under android) - github.com/flutter/plugins/blob/…pskink– pskink2020-07-07 07:32:40 +00:00Commented Jul 7, 2020 at 7:32
-
You can change the file name if you are going to store it in firebase storage. Are you trying to do that?littleironical– littleironical2020-07-07 08:05:24 +00:00Commented Jul 7, 2020 at 8:05
-
Yes @HardikKumar. But the issue is that I want to store the images by their original name.Zaeem– Zaeem2020-07-07 14:19:33 +00:00Commented Jul 7, 2020 at 14:19
-
did you solve this? I am getting same issueNabin Dhakal– Nabin Dhakal2020-11-24 12:17:18 +00:00Commented Nov 24, 2020 at 12:17
-
1I have the same problem with Rest API to which I need to send image files (via Base64) which are name exactly as required by the API. Any ideas?Łukasz Garczynski– Łukasz Garczynski2020-11-27 10:13:25 +00:00Commented Nov 27, 2020 at 10:13
|
Show 1 more comment