You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

yl4882's avatar
yl4882
Helpful | Level 5
2 years ago

raw=1 stop working in safari. Why?

I am using raw=1 to render images in the website I built, the images were working fine on every browser util yesterday (08/09/2023), and now stop working on safari. Does anyone experience the same thing?

  • We just released the fix for the issue on Safari with "raw=1" links. Please let us know if you still have any issues.

  • lisadbx's avatar
    lisadbx
    Icon for Dropbox Engineer rankDropbox Engineer

    Solution in Progress

    We have confirmed the issue is limited to Safari and we will have a fix out shortly. 

    • lisadbx's avatar
      lisadbx
      Icon for Dropbox Engineer rankDropbox Engineer

      We just released the fix for the issue on Safari with "raw=1" links. Please let us know if you still have any issues.

      • justing1's avatar
        justing1
        Helpful | Level 6

        Appears to be working again. Thanks for the prompt fix.

  • Jay's avatar
    Jay
    Icon for Dropbox Staff rankDropbox Staff

    Hi djb21au, from what you're describing, it sounds like it's affecting only Safari. So it has to be a recent change in that browser, or a setting which is preventing it from working properly.

    • djb21au's avatar
      djb21au
      Explorer | Level 4

      I agree, though no idea where to start in approaching Apple about it, or what to say. Are you able to give me any technical description of what happens when we change that suffix? I read something about it forcing a redirect (though I don't understand how that would work in this type of situation).

  • Jay's avatar
    Jay
    Icon for Dropbox Staff rankDropbox Staff

    Depending on the shared links used, there may be a redirect used. This thread shows more information on recent changes made to shared links.

    • Freqs's avatar
      Freqs
      Helpful | Level 5

      Hi All, Same issue here.  Safari just showing blank screen for a raw=1 image 

      Chrome and Firefox loading properly.  

      Seems like a Safari issue but I can't see what changed around Aug 9th.   Was there an update to Safari around then? I don't see evidence of a software update. 

  • justing1's avatar
    justing1
    Helpful | Level 6

    It appears Dropbox has changed their share link structure by embedding a key into the share link. For some reason, since this change has occurred, we have noticed that shared pdf files set to open directly (by changing dl=0 to raw=1), open as blank pages on iOS safari. If the Dropbox app is installed, the files open in Dropbox directly just fine. Links also work in Chrome and Edge desktop just fine.

    We do not want to have to have user install Dropbox to share pdf's however. Anyone else experiencing these issues, and is their a structural change to the link we can make to correct?


    • Jay's avatar
      Jay
      Icon for Dropbox Staff rankDropbox Staff

      Hi justing1, I've merged you to this thread for users with similar questions. Could you try the solutions above to see if they help?

      • justing1's avatar
        justing1
        Helpful | Level 6

        Thank you for the solution. My only hang up with using the "dl.dropboxusercontent" is that it sounds as if it's a deprecated endpoint. Furthermore, this path causes pdfs to download vs display directly in some browsers. Is there a plan to fix the redirect issue with Safari that is being caused by the new links? I would prefer to not use any deprecated endpoints that are not supported with current documentation long term, lest the next guy has to navigate old threads to determine why we are using an undocumented endpoint.

        I appreciate the work around.

  • Megan's avatar
    Megan
    Icon for Dropbox Staff rankDropbox Staff

    Hi yl4882, let's jump right into this! 

     

    Do you get any specific errors on your end when this happens? What about other browsers, other than Safari? Do you notice the same thing there? 

     

    Keep me posted! 

    • djb21au's avatar
      djb21au
      Explorer | Level 4

      I have also struck this problem. It still works in Firefox and Chrome, but on Safari I just get a blank screen. When working on a newsletter and adding code to embed an image, again with the raw=1 suffix, the preview works on those alternative browsers but I get just the little broken image icon on Safari.

       

      I have temporarily turned off the content blocker for Safari and a separate pop-up blocker, but that has made no difference.

  • yl4882's avatar
    yl4882
    Helpful | Level 5

    Hello all, I tried the thread that links to links to this thread, and safari started working again by modifying using dl.dropbox.com or dl.dropboxusercontent.com.

    Hope this helps!

    • porg's avatar
      porg
      Helpful | Level 5

      My previous message was falsely reported as spam.

       

      Again with fewer links to hopefully not get flagged false positive again.

       

      I experienced this bug in the wild in this WordPress forum thread that I started:

       

      https://wordpress.org/support/topic/responsive-attribute-shall-have-value-at-certain-breakpoint-but-unset-on-lower/

       

      1) In my initial post on top

       

      dropbox.com /scl/fi/<identifier>/<filepath1>?rlkey=XXX

       

       

      2) a+b) In my second post I used 2 links with this pattern

       

      dl.dropboxusercontent.com /scl/fi/<identifier>/<filepath2>?rlkey=YYY

       

       

      Chrome + Firefox: Load all 3 links fine.

       

      Safari: All links work fine when clicked. But in addition I also had the videos embedded inline as IMG elements, which Safari allows. It treats them like animated GIFs (autoplays, looped, muted). This worked fine yesterday. But not when I revisited the page.

       

      Interestingly a hard reload helped. Maybe your browser caching busting/policies are not set up correctly? (Especially in conjunction with redirects, something probably messes up Safari). Although theoretically link pattern 2ab should not use any HTTP redirects, so should serve with HTTP 200 according to your documentation.

      • Freqs's avatar
        Freqs
        Helpful | Level 5

        That did work, I just changed the link and added the dl.dropbox.com up front and Safari now loads fine, dl.dropboxusercontent.com work fine too. Fortunately I only had to modified a hand full of new links and all the legacy links still work. Thanks! 

         

  • porg's avatar
    porg
    Helpful | Level 5

    Another example

     

    https://wordpress.org/support/topic/wp-image-block-wrapped-in-greenshift-container-should-not-have-bottom-margin/

     

    The first posting contains 2 inline images which were embedded with this link type:

     

     

    dl.dropboxusercontent.com /scl/fi/<identifier>/filename.png?rlkey=XXX

     

     

    And on each revisting of the page it is NOT shown in Safari

    Only when I issue a hard-reload it is shown.

     

    Though I experience this again and again I can not artificially reproduce it.

     

    • New browser tab
    • Open forum URL
    • Open DevTools → Network
    • Filter for "dropbox", shows two PNGs, both HTTP 200, so no redirects, no caching issues
    • Hard reload
    • Network inspection still open: PNGs are shown as HTTP 200 but with the note "served from memory", this is normal, Safari considers its TTL, and does not re-evaluate before that, if the policy does not ask to re-evaluate on each request.
    • Closing all browser windows.
    • Open new browser window
    • While that browser windows is still blank: Open DevTools → Network — So that I can observe it while in that state
    • Reload
    • Again, both PNGs HTTP 200.

    It seems to have to do with Safari's TTL assumption regarding the cached files, which seems to be not in the minutes or so, but happens definitely if you revisit some more minutes hours later. Very very odd all this.

About Create, upload, and share

Find help to solve issues with creating, uploading, and sharing files and folders in Dropbox. Get support and advice from the Dropbox Community.

Need more support

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!