One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
kostas k.7
7 years agoExplorer | Level 4
MIME type ('text/plain') is not executable
Hello Dropboxers, I am developing a web app with the use of HTTP endpoints. Thus far, the Power user(owner of a file) can create_a_shared_link with settings for a specific file and share it with ...
- 7 years agoBased on the output you shared, the browser is refusing to load the file as a script because the Content-Type returned isn't an executable type.
The Content-Type that Dropbox returns is based on the file extension. It sounds like you probably have a plain text extension on the file, e.g., ".txt". You would need to switch to using ".js" as the file extension in Dropbox if you want it to be served as "application/javascript" instead, so that the browser will load it.
Greg-DB
Dropbox Staff
7 years agoBased on the output you shared, the browser is refusing to load the file as a script because the Content-Type returned isn't an executable type.
The Content-Type that Dropbox returns is based on the file extension. It sounds like you probably have a plain text extension on the file, e.g., ".txt". You would need to switch to using ".js" as the file extension in Dropbox if you want it to be served as "application/javascript" instead, so that the browser will load it.
The Content-Type that Dropbox returns is based on the file extension. It sounds like you probably have a plain text extension on the file, e.g., ".txt". You would need to switch to using ".js" as the file extension in Dropbox if you want it to be served as "application/javascript" instead, so that the browser will load it.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 6 days 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!