Asking the user to pick a file (system)

hello! I am making something and I want to include a way to add images saved on the user’s computer.
is there a specific way to call this prompt?
(its the one where you pick a file)

thanks.

The apporiate method for this is called showOpenFilePicker and is avalible on the window object :slight_smile:

I’ve linked you an example that just happens to include images, though you may need to tweak the file extension list for your circumstances.

1 Like