I am trying to make an app for sending files to my remote server via ssh in flutter. My idea is to get the path of selected file and pass it over to ssh. I am using file picker plugin in flutter to select file, but it taking file to memory before getting file path, for large files this is taking time.is there any way to get the path of file only without taking file to memory ?
Asked
Active
Viewed 1,133 times
3
-
What is it doing with this file in memory? I see no reason. – blackapps Feb 20 '20 at 19:03
-
@blackapps my need is to get the path of selected file instantly..i am handling with files greater than 1GB ..which taking lot of time – Prinz Piuz Feb 21 '20 at 04:27
-
You did not answer my question. I already knew what you want. I still dont know why it is put in memory. – blackapps Feb 21 '20 at 06:52
-
Please, can you copy the piece of code where you load these files? – theSlyest Feb 21 '20 at 08:07
-
@SylvainL.Kamdem https://bin.disroot.org/?ead174a5d5d9052a#ATuPe4U6RAn4rHT9jWUD1FfooTU9uupukQd7fudUDDUZ – Prinz Piuz Feb 21 '20 at 09:10
-
@blackapps its doing nothing in memory – Prinz Piuz Feb 21 '20 at 09:12
-
@SylvainL.Kamdem i tried it from here https://github.com/miguelpruivo/flutter_file_picker/blob/master/example/lib/src/file_picker_demo.dart – Prinz Piuz Feb 21 '20 at 09:12
-
You are right, I tried the example app with some big files and it took time. I had this line in the debugger console for every selected file: `I/FilePickerUtils( 2296): Caching file from remote/external URI` – theSlyest Feb 21 '20 at 10:19
-
1@SylvainL.Kamdem is there any way can get file path without loading it ?? – Prinz Piuz Feb 21 '20 at 11:40
1 Answers
1
found a method in this project flutter file utils there is a method call list_file in this

Prinz Piuz
- 69
- 9
-
1So how can we get the path to the files we selected? (like filepicker) – Wise Colt Dec 28 '20 at 08:19
-