Open sdancer75 opened 6 months ago
It seems that the problem is related to the secure content checking.
The https:// is not currently enabled in my AWS server & consequently, the fsAccessApiWorksRef()
check below is always getting false.
const fsAccessApiWorksRef = useRef(typeof window !== 'undefined' && window.isSecureContext && useFsAccessApi && canUseFileSystemAccessAPI());
.....
if (fsAccessApiWorksRef.current) {
......
showOpenFilePicker();
......
}
i.e windows.isSecureContext
returns false in the AWS server so, showOpenFilePicker is never called.
I want to report the same issue - click doesn't open the window to select file. In Safari it works fine, but not in Chrome.
same issue , Safari works fine, but not in Chrome.
Describe the bug
Using a modified version of the official example below to open the File Dialog Programmatically in my ReactJs project, it appears to be functioning properly under my local machine.
However, when I upload the code to AWS (Linux) server (non-secured) this functionality does not work.
I tested it, with all major browsers I had.
To Reproduce Run the Opening File Dialog Programmatically at https://react-dropzone.js.org/#section-basic-example
Expected behavior To open the file dialog
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):