- i am loading file picker when a html page loads
- on Firefox, Chrome, Microsoft Edge browsers it works fine
- On IE-11 it gives error.
error in console
> SCRIPT5022: Failed to open/load the window. Dropbox.choose and Dropbox.save should only be called from within a user-triggered event handler such as a tap or click event.
jquery.min.js (2,31689)
In picker
> Could not communicate with https://host:port/
- after that picker doesnt work.
- pls comment. Also pls comment why behaviour is different in browsers and issue is only with IE-11
http://localhost:8000/DropboxPicker.html
// simplified test
function loadPicker()
{
let options = {
success: printSelectedFile,
linkType: "direct",
multiselect: true
};
Dropbox.choose(options);
}
function printSelectedFile()
{
..
}
// load picker
$(document).ready(loadPicker);