Learn how to make the most out of the Dropbox Community here 💙!
Forum Discussion
KlausB
6 years agoHelpful | Level 7
Cannot load javascript from Dropbox - Incorrect Mime Type?
I am trying to load javascript code from Dropbox for use in personal bookmarklets. For instance,
(function(){
const url = 'https://www.dropbox.com/s/5cbb5dki3rnpdei/DebugSimple.js?raw=1';
...
- 6 years ago
Based on the error message you shared, you're not getting exactly the same issue as the thread you linked to. It looks like you can still make this work using the modification mentioned there though, i.e., by changing your link to use 'dl.dropboxusercontent.com' initially, like this:
https://dl.dropboxusercontent.com/s/5cbb5dki3rnpdei/DebugSimple.js
Note that this isn't officially supported though, and is subject to change.
Greg-DB
Dropbox Staff
6 years agoBased on the error message you shared, you're not getting exactly the same issue as the thread you linked to. It looks like you can still make this work using the modification mentioned there though, i.e., by changing your link to use 'dl.dropboxusercontent.com' initially, like this:
https://dl.dropboxusercontent.com/s/5cbb5dki3rnpdei/DebugSimple.js
Note that this isn't officially supported though, and is subject to change.
- KlausB6 years agoHelpful | Level 7
It does work indeed, but the lack of official support is discouraging. The following thus works:
(function(){ const url = 'https://dl.dropboxusercontent.com/s/5cbb5dki3rnpdei/DebugSimple.js?raw=1'; const e = document.createElement('SCRIPT'); e.src=url; document.head.appendChild(e); })();
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,974 PostsLatest Activity: 7 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!