Forum Discussion

KennelLink's avatar
KennelLink
Explorer | Level 3
9 years ago

Using resulting 'link' from get_temporary_link in IE new window shows about:blank

I'm trying to show a file (like .jpg or .pdf) in a new window of the browser.

I'm using Internet Explorer 11 on Windows 7.

I invoke get_temporary_link and use the resulting link as such:

  window.open(tempLinkResults.link)

The new window first navigates to the dropbox URL (such as https://dl.dropboxusercontent.com/apitl/1/AACt...) but then shows about:blank.  This happens for all of the jpg & PDF files I've tried.

Am I doing something fundamentally wrong?

Any ideas?

 

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    Thanks for the report! This is a known issue with how IE handles these links. The expected behavior is that the browser would download the file, based on the Content-Disposition header. IE doesn't seem to do so, and instead does nothing, as you mentioned.

    I'll send this along to the team, but I can't say if or when we'd be able to change this, as it's related to how the browser itself is handling this, which is out of our control. (Firefox, for example, downloads the file as expected.)
    • Dave Q.1's avatar
      Dave Q.1
      New member | Level 2

      Any update? The link obtained from the API v1 works fine (using /media) but not under the API v2 (/get_temporary_link)... we're forced to update to v2 prior June but that's a real problem under IE! Thx

  • fredrik80's avatar
    fredrik80
    New member | Level 2

    We are also now forced to migrate to API v2 and are trying to use the get_temporary_link endpoint. The links generated do not work in Internet Explorer. We would really need a resolution or work-around for this, as we serve a lot of documents on our website based on content in Dropbox.

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff
        We've had our engineers working on this and the good news is the problem has been fixed. Please try again and you should find that this functionality works correctly.

        Apologies for any inconvenience this caused.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,945 PostsLatest Activity: 32 minutes ago
351 Following

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!