Opens a file chooser dialog and allows the user to select a file.
Optional
Optional file type filter. Can be a comma-separated list of MIME types or file extensions.
A promise that resolves with the selected file or null if the selection was canceled.
Opens a file chooser dialog and allows the user to select a file.