We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

kostas k.7's avatar
kostas k.7
Explorer | Level 4
7 years ago

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 ...
  • Greg-DB's avatar
    7 years ago
    Based 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.