Questions tagged [filepicker]

Questions about the use of file pickers in general. Not to be confused with [filepicker.io]; use that tag for questions related to that service.

This tag refers to generic file pickers.

For questions related to the filepicker.io service, use the tag instead.

Examples

HTML

<input type="file">
413 questions
1
vote
2 answers

Flutter File picker unable to select image from Android Gallery

I am using file_picker 5.0.1, while selecting image from Android device Gallery app it shows this error. I/FilePickerDelegate(26740): User cancelled the picker request This is the code snippet, I am using to call file picker FilePickerResult?…
1
vote
1 answer

MAUI: Persisting access to Nextcloud files via the file picker in connection with an iOS File Provider

I have currently the problem specially on iOS, that when I select a file through the FilePicker, which is located in Nextcloud and integrated in the file manager through the file provider, I get a shared path to the file. The access is now possible…
Sirius
  • 13
  • 2
1
vote
0 answers

How to open a file under android with file_picker_cross

I am developing a flutter app, and that app needs to load and store the app data in a public area (to be able to be shared or otherwise copied by other means). the app needs to run under linux and at least android, web would be nice too, but…
bboett
  • 123
  • 9
1
vote
1 answer

Flutter - I am unable to load file using File Picker package

I am trying to select a file using the File Picker package but it gives an error of Unable to load asset: /data/user/0/com.example.demo_app/cache/file_picker/sample1.txt After selecting the file, I write code to make some implementattion of adding…
Samuel
  • 472
  • 4
  • 14
1
vote
1 answer

Select image for flutter web on mobile device

Im currently using https://pub.dev/packages/file_picker for this function FilePickerResult result = await FilePicker.platform.pickFiles(); if (result != null) { setState(() { filePicked = result; }); for (int i = 0; i <…
ali
  • 859
  • 4
  • 12
  • 25
1
vote
0 answers

File picker and Image picker not working due to plugins not automatically attaching to FragmentActivity

I have added flutter in an existing Android app and I have been facing issues with File picker library not working. After some debugging I believe it's due to GeneratedPluginRegistrant not being registered. I Believe using a FlutterFragmentActivity…
Bali
  • 749
  • 6
  • 19
1
vote
1 answer

Flutter: A problem when using FilePicker to pick files

Some of my codes is as following: File? _file; PlatformFile? _platformFile; selectFile() async { final file = await FilePicker.platform.pickFiles( type: FileType.custom, allowedExtensions: ['mp3', 'm4a'] ); if (file…
yamato
  • 85
  • 1
  • 13
1
vote
1 answer

Xamarin.Essentials Unable to select images in "File Picker" on iOS

When I try to select an image using the "File Picker" in Xamarin.Essentials, I can't select it only in the iOS simulator. Xamarin.Essentials: File…
hibara
  • 137
  • 11
1
vote
2 answers

Unable to pick file (pdf, doc, docx) from download folder in Android 11 and above

I'm using the File Picker library. Permission code: if (Build.VERSION.SDK_INT < Build.VERSION_CODES.R || Environment.isExternalStorageManager()) { //Toast.makeText(this, "We can access all files on external storage now",…
Ashwin H
  • 695
  • 7
  • 24
1
vote
0 answers

Xamarin Forms File Result is Null when Pick File in FilePicker

File selection is made with picker in my project where I make Xamarin Forms. The problem is that it always returns null. my manifest
Emin Niftiyev
  • 197
  • 1
  • 13
1
vote
1 answer

How can I limit the picked files as a maximus number which user picking using File Picker

Flutter , Dart I am using file_picker with allowMultiple: true as parameter , but couldn't find a parameter for limiting the number of maximum files which user gonna pick from gallery Is this possible?, if not How can I do it ? great regards final …
Jack
  • 161
  • 1
  • 16
1
vote
0 answers

Google File Picker: Fix return to root folder comes up empty

In my JS file picker implementation, I am successfully able to download files successfully, and navigate through the folder structure. However, if I return to the root folder after navigating away from it, nothing is displayed: View…
1
vote
2 answers

How to implement file picker android 11

Can anyone please share complete solution for File Picker in Android 11 for both Internal and External Storage
Haseeb Afzal
  • 11
  • 1
  • 4
1
vote
1 answer

FilePicker hangs on HoloLens with immersive Unity app

I'm trying to find out if it's possible to use the native HoloLens file picker in an immersive Unity app. I've tested 2 samples so far that both work, but only if they're using a UI window for the entire app. I've been following other people's SO…
Greta-A
  • 43
  • 5
1
vote
1 answer

Does flutter web somehow allows to pick file from a fixed path on local machine?

Using flutter web, need to access a local file from PC whose path is fixed. May be user can set permission once and then it automatically picks the file from that fixed path every time on its own?