Ryan HuffmanAdd fileBrowserExample.jseccedda12 years agoHistory
13 lines · 408 B · JavaScript
RawDownload
var file = Window.browse("File Browser Example", "/");if (file === null) {    Window.alert("No file was selected");} else {    Window.alert("Selected file: " + file);} file = Window.browse("Relative Directory Example", "./images", "PNG or JPG files(*.png *.jpg);;SVG files (*.svg)");if (file === null) {    Window.alert("No file was selected");} else {    Window.alert("Selected file: " + file);}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t