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
0
votes
1 answer

How to get the file name in Flutter when using dart:HTML library to pick file in Flutter Web?

In my project, I have defined a function uploadPdf(). Calling this function at Raised Button to pick a file and it works fine. And it printing the fileName. Now what I want to get that fileName to Text Widget. For that, I defined fileName as a…
Prateek
  • 502
  • 5
  • 16
0
votes
1 answer

How the user can choose specific file location to save a file in Flutter

When pressing a button the user need to choose a file location (Pick a folder) to save a file. How can i implement it in flutter. Can i use file_picker package for picking the folder?
Murali Krishnan
  • 272
  • 5
  • 20
0
votes
1 answer

Getting "Input string was not in a correct format" with File picker

I am trying to pick a file using the following code FileData fileData = new FileData(); fileData = await CrossFilePicker.Current.PickFile(); if (fileData !=…
sahithi
  • 1,039
  • 2
  • 14
  • 37
0
votes
1 answer

Use filepicker to select a text file and load the content of that text file into an Edit Text in Xamarin Android

After asking a related question here on this forum, am so grateful to have found code to open a file picker interface to enable user choose a file with mime type (".txt"), No i need to advance past this and load the content of that text file into an…
user14187680
0
votes
0 answers

Include my own example pictures in filepicker (Intent.ACTION_PICK)

I'm letting my users pick an image from their file system with Intent.ACTION_PICK. But some users are lazy and don't want to use their own images so I'd like to include a few default/example images that come preinstalled with the app. Basically I…
0
votes
1 answer

Open file picker interface programatically on xamarin android

Am trying to get my app to display the file picker interface programatically on button click but when i click on that button, my app crashes... The button has the label "open" and its supposed to filter files and display only files with the…
user14187680
0
votes
0 answers

Prevent the use of OneDrive personal account with OneDrive API

I'm trying to use the filepicker from OneDrive API, and I want to let the users of my app open file from their onedrive buisness or sharepoint account only, because I want to create a sharable link inside the organization scope only. So, I want to…
0
votes
2 answers

Xamarin.Plugin.FilePicker - content:/com.android.providers.downloads.documents Problem

I am using Xamarin.Plugin.FilePicker (version is: 2.1.41). It gives me like this path in android 10 devices: content://com.android.providers.downloads.documents/document/3025 or content://com.android.providers.downloads.documents/document/msf:14 I…
0
votes
2 answers

File Picker without caching Files in flutter

I want to pick files from storage using flutter, but in all libraries the picked file writes to cache immediately and returns the cached URL (/data/data/package/cache...). Sometimes it's OK, but in case of multiple files and large sized files this…
Bibin KJ
  • 77
  • 8
0
votes
1 answer

UWP app crash when trying to open File Picker from WebView ScriptNotify even when running by Dispatcher

Reproducible repo here My app has a WebView for UI and it notifies the backend code by using window.external.notify: public MainPage() { this.InitializeComponent(); this.web.ScriptNotify +=…
Luke Vo
  • 17,859
  • 21
  • 105
  • 181
0
votes
1 answer

Cancel choosing a file with file_picker_cross `FilePickerCross.pick`

I'm using file_picker_cross for Android. I cannot find any way to cancel the file picker after calling FilePickerCross.pick(). The method replaces the full screen with the file picker dialog with no cancel button. I can tap the Android's back button…
Stack Underflow
  • 2,363
  • 2
  • 26
  • 51
0
votes
1 answer

Pick file with specific file extension xamarin.android

@vividos @jfversluis Expected Behavior I want to open files with specific file extension filter. Actual Behavior Lets suppose I have file named "abc.ext", So I want to filter all files with that specific extension i.e .ext. Currently I seen android…
Sorry IwontTell
  • 466
  • 10
  • 29
0
votes
0 answers

Integrating Folder Picker

I am trying to integrate a folder picker instead of constant path into my code but am having issues with it. When I try to run the code from the developer the folder picker comes up, but then the excel workbook goes blank and Excel doesn't close,…
JosephD
  • 47
  • 1
  • 13
0
votes
1 answer

Android app in java crashes when trying to open a text file

I am trying to make a simple text editor for Android in Java. I run into a problem, when tring to open a file. In this line of my code File file = new File(getExternalFilesDir(filepath), filename); I got a null pointer exception: …
janka
  • 3
  • 1
0
votes
0 answers

How do I not show empty 0 B files when I use Intent.ACTION_GET_CONTENT?

In my app I need to pick images from storage and display them on screen. I'm using an Intent to do this for me. I have posted my code to do this below. Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType("image/*"); …
rahul98
  • 1
  • 1