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
8
votes
4 answers

How to select folder in android?

Hi there is a way to select folder where user want to save file in android . I check out http://code.google.com/p/android-file-dialog/ it has functionality to select file but i want to select folder , please provide me usable link or examples.
Sushant Bhatnagar
  • 3,684
  • 10
  • 31
  • 42
8
votes
4 answers

Kivy FileChooser: List directories only

How to list only directories in Kivy FileChooser? I've read about callback filters, but didn't found any examples. My Kv code: : select: select chooser: chooser orientation: 'vertical' FileChooserIconView: id:…
Cyber Tailor
  • 443
  • 7
  • 18
7
votes
5 answers

How do I start file chooser using intent in compose

I am trying to start file chooser on a button click (composable function). Unable to use startActivityForResult(). @Composable fun SelectScreen() { Button(onClick = { val intent = Intent(Intent.ACTION_GET_CONTENT) …
7
votes
1 answer

Making a dialog where the user can choose either a file or a folder

In MATLAB, there's a function that prompts the user to choose one or more files - uigetfile, and there's another function which allows the user to choose a folder - uigetdir. I would like to provide the user an ability to choose either a file or a…
Dev-iL
  • 23,742
  • 7
  • 57
  • 99
7
votes
1 answer

GTK+ Filechooser to open both files and folders

How do I get my filechooser to be able to select both files and folders when the open button on the filechooser dialog is hit ? I want to squeeze the ability to open files and filders in just one filechooser. I am using GTK+ and Python.
thotheolh
  • 7,040
  • 7
  • 33
  • 49
7
votes
3 answers

How to get file path from JavaFX FileChooser?

I have a simple JavaFX window with a TextField for users to enter a file path and a separate browse link. JavaFX Window I'd like to ask how to extract the full file path of the selected file from JavaFX FileChooser (so I can set the path in the…
Hans
  • 121
  • 1
  • 1
  • 8
7
votes
2 answers

JavaFX - How to focus on one stage

My application has a main app Stage that opens a 2nd window from it. I want to focus on only one stage. I have 2 issues which I want to be resolved : 1 - How can I put the focus on only the second Stage (a fileChooser OpenDialog)? i.e. I can't…
Mohamed Benmahdjoub
  • 1,270
  • 4
  • 19
  • 38
7
votes
3 answers

Upload camera photo and filechooser from webview INPUT field

My app is webbased and I need to upload pictures from an INPUT field camp. I've two situations and as i don't know another way to do it depending the page I'm choosing one or another with "boolean boolFileChoser" depending its URL petition: a. file…
Jordi
  • 616
  • 2
  • 9
  • 16
6
votes
0 answers

WebView choosing file and Activity recreation

There is an app where the Users Onboarding Flow is implemented as a Web page and it is being shown in the embedded WebView. One of that flow steps is a file uploading. It is implemented by using tag on the web page and further handling it…
Alexander Skvortsov
  • 2,696
  • 2
  • 17
  • 31
6
votes
2 answers

GTK+ 3 native file chooser - allowed file types and default file name

I am using GTK+ to create a C++ program. For choosing files I used native file chooser as the gtk file chooser has a memory leak. Here is my question: How can I set a default file name for the native file chooser in GTK+ (while saving) and how can I…
PaweX3
  • 65
  • 1
  • 7
6
votes
3 answers

How to load Image file to ImageView?

I am attempting to display an image file as soon as it is selected from a file chooser. The file chooser is restricted to .png and .jpg files with the selected files being stored in a variable of type File. To do this I have set up an ImageView, and…
Philayyy
  • 1,767
  • 4
  • 16
  • 22
6
votes
2 answers

TinyMCE file_picker_callback select image from default browser file selection

Im using TinyMCE in a project and want the user to select and upload images to the server using its default insert image window. I want to click the following button: Open the browsers default file select window and add the selected image to the…
Ricky
  • 2,912
  • 8
  • 47
  • 74
6
votes
3 answers

How to make activity appear in "Choose file" dialog?

Example: when you click a button to upload an image, you get the dialog to choose a file. Then you can select an app you want to choose it. How can I make my app appear in that dialog?
Rotary Heart
  • 1,899
  • 3
  • 29
  • 44
5
votes
1 answer

How to do a modal FileChooser in JFXPanel?

I want to show a FileChooser dialog on top of an awt app which uses a JFXPanel. As Window for showOpenDialog, I use getWindow() of the Scene set to that panel. But the file chooser appears behind the app and everything in the JFXPanel still remains…
M. Schenk
  • 314
  • 3
  • 8
5
votes
1 answer

How to unit test a method that uses javafx file chooser

I want to write a unit test for my save and load methods but the methods use file chooser and I do not know how to simulate those being used in a unit test. My load and save methods are below Apparently I need to add more detail but i have summed up…
Julien Powell
  • 186
  • 1
  • 14
1
2
3
31 32