wails icon indicating copy to clipboard operation
wails copied to clipboard

how to open a directory and file dialogbox

Open zundaren opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe.

Open a dialog box to select files and directories both

Describe the solution you'd like

upload multiple selection files and directorys is very useful

Describe alternatives you've considered

No response

Additional context

No response

zundaren avatar Mar 06 '23 10:03 zundaren

If it's possible we will support this in v3

leaanthony avatar Mar 06 '23 12:03 leaanthony

It is not possible to select files and directories. The only way to select both files and directories is by providing two separate input elements.

References: https://stackoverflow.com/questions/3170962/enable-gtkfilechooserdialog-to-select-files-or-folders

mooijtech avatar Aug 05 '23 15:08 mooijtech

I cant speak to wails v3, but v2 doesnt support it out of the box. It's not hard to implement however, mac: smallest tweak to wailsv2 would expose this functionality, it's so close to already providing this. win: requires more work. see https://github.com/microsoft/Windows-classic-samples/tree/main/Samples/Win7Samples/winui/shell/appplatform/CommonFileDialogModes linux: out of the box, you can multiselect in "Recent" tab using wails v2. It's not hard to add code to make it work in all tabs FYI

acastruc avatar May 16 '24 17:05 acastruc