Questions tagged [filechooser]

A GUI component that allows to navigate over the file system, selecting files and folders of interest.

Usually file chooser is similar to the file explorer. It allows to navigate over the file system, selecting files and folders of interest or to specify yet non-existing files in the existing folder ("Save as").

File chooser can often be configured to show only set of selected file types, allow or disallow multiple selection and allow or disallow selection of folders rather than files.

This component is present in libraries of many languages.

472 questions
182
votes
11 answers

Choosing a file in Python with simple Dialog

I would like to get file path as input in my Python console application. Currently I can only ask for full path as an input in the console. Is there a way to trigger a simple user interface where users can select file instead of typing the full…
Mustafa Zengin
  • 2,885
  • 5
  • 21
  • 24
125
votes
2 answers

Android file chooser

I want to make a file uploader. And I hence I need a file chooser but I don't want to write this by myself. I find OI file manager and I think it suits me. But how can I force user to install OI file manager? If I cannot , is there a better way to…
Bear
  • 5,138
  • 5
  • 50
  • 80
67
votes
2 answers

JavaFX FileChooser and DirectoryChooser

I came across a little problem now with JavaFX. I tried to make a filechoosing in my code where I can point on a FOLDER instead of a file. Currently I don't have a solution for it. Do you know a workaround (except using JFileChooser from…
newhouse
  • 1,152
  • 1
  • 10
  • 27
50
votes
10 answers

File/folder chooser dialog from a Windows batch script

In situations where input file location is not known until runtime, using a GUI for file selection input reduces the likelihood of user error. Is there a way to invoke a file/folder chooser dialog from a Windows batch script?
rojo
  • 24,000
  • 5
  • 55
  • 101
48
votes
10 answers

Does Swing support Windows 7-style file choosers?

I just added a standard "Open file" dialog to a small desktop app I'm writing, based on the JFileChooser entry of the Swing Tutorial. It's generating a window that looks like this: but I would prefer to have a window that looks like this: In other…
Pops
  • 30,199
  • 37
  • 136
  • 151
42
votes
9 answers

onShowFileChooser() from android webview works only once

I need to pick images from the device and upload it to the server. For the first time, when I pick the images, onShowFileChooser() gets called and everything works. But, when I try to click upload again, onShowFileChooser() never gets called. But…
Sangeetha Pinto
  • 1,022
  • 3
  • 14
  • 32
40
votes
4 answers

How do I open the JavaFX FileChooser from a controller class?

My problem is that all the examples of using FileChooser requires you to pass in a stage. Only problem is that my UI is defined in an fxml file, which uses a controller class separate from the main stage. @FXML protected void locateFile(ActionEvent…
Electric Coffee
  • 11,733
  • 9
  • 70
  • 131
40
votes
3 answers

JavaFX FileChooser: how to set file filters?

I want to set file filters in a JavaFX FileChooser but I could not find a way to do it. My code: FileChooser fc = new FileChooser(); fc.setTitle("My File Chooser"); File f = fc.showOpenDialog(primaryStage); System.out.println(f);
ceklock
  • 6,143
  • 10
  • 56
  • 78
27
votes
5 answers

Simple Android Directory picker - How?

I have just started coding in Android Studio and feeling Awesome..!! How can I write a code for a 'Directory Picker'. i.e., When a button is clicked, a simple Dialog/Activity screen which can show list of directories. Also, want to store all the…
Android_Noob
  • 487
  • 2
  • 6
  • 19
22
votes
2 answers

HTML input file - how to translate "Choose File" and "No file Chosen"?

I know that these two words get automatically translated, due to the browser language. But my HTML is not doing that. HTML:

0xmtn
  • 2,625
  • 5
  • 27
  • 53
13
votes
4 answers

Can a JavaFX FileChooser "remember" the last directory it opened?

My view controller has a single FileChooser instance used for both opening and saving files. Every time I call showOpenDialog() or showSaveDialog() from that instance, I expect the resulting dialog to be in the same directory as I left it the last…
user4996976
13
votes
0 answers

Android Web-view file-chooser after selection nothing happens

When I click on "Choose file" a file browser shows up and I can choose file/image I want to select. But after I choose a file, the file chooser closes and nothing happens. I am able to click on "Choose file" only once because it does not show up…
11
votes
1 answer

Server Side File Browsing

I'm working on a web app that reads data from a set of text files and maps it to a MySQL database. Currently, the form requires manual input of the file path, but I would like to add a file chooser to this field to make that part of the setup a…
Mike
  • 628
  • 1
  • 5
  • 25
11
votes
1 answer

Android: Directory and file chooser android library

I'm using aFileChooser android library project in my app to select the file from external storage. but it doesn't seem to pick only directory to let user select the download location to download the files. Is there any android library project which…
Prashant
  • 263
  • 1
  • 4
  • 12
10
votes
2 answers

Android Multiple File Selector/Chooser Dialog

I have been scouring the internet for a simple easy to implement Android file chooser dialog that also has the option of selecting multiple files and returning a uri or string array with all the files selected. Currently I use aFileChooser on github…
Asiimwe
  • 2,199
  • 5
  • 24
  • 36
1
2 3
31 32