Window: showOpenFilePicker() method - Web APIs | MDN

The showOpenFilePicker() method of the Window interface shows a file picker that allows a user to select a file or multiple files and returns a handle for the file(s).