One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
rrpai
7 years agoHelpful | Level 5
Picker error on Internet Explorer 11 when invoked during page load
- 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);
Every browser is implemented differently, so different behaviors may be expected across browsers. (For what it's worth though, I do see the same error here using your code in Chrome on macOS as well.)
In any case, you should only start the Chooser from a user-triggered event. E.g., call Dropbox.choose when a button is hit; something like:
$(document).ready(function() { $("#button").on('click', function(e) { Dropbox.choose(options); }); });
- Greg-DB
Dropbox Staff
Every browser is implemented differently, so different behaviors may be expected across browsers. (For what it's worth though, I do see the same error here using your code in Chrome on macOS as well.)
In any case, you should only start the Chooser from a user-triggered event. E.g., call Dropbox.choose when a button is hit; something like:
$(document).ready(function() { $("#button").on('click', function(e) { Dropbox.choose(options); }); });
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,945 PostsLatest Activity: 10 hours ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!