Looking to see if anyone knows of a File Picker plugin similar to the image_picker, but for files, so that they can be uploaded from a mobile device.
Looking for a plugin or any example if anyone has done it already.
Thanks for any help.
File PickerA package that allows you to use the native file explorer to pick single or multiple files, with extensions filtering support.
For Single file: If you want to pick a single file then no need to pass allowMultiple, default value is false for allowMultiple. For Multiple file: If you want to pick more then one file at once(multiple file picking), you need to use below code. 2. allowedExtensions: : Allow only specific extensions file to be picker.
Go to Add a new control > Input control and add a new Button control underneath the File Picker control in your app and rename it Upload. On the new Button control, go to Events > Create Rule and create an Upload file to Storage bucket rule for this control. Configure the Upload file to Storage bucket rule.
I started hacking this together. I got it basically working for android. Here is the repository.
It actually copies the selected file to the app's temp directory and then provides the path, since there's no way I can see to get the file data from the OS to flutter.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With