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

jonokivex's avatar
jonokivex
Helpful | Level 5
11 months ago

&raw=1 links no longer display on mobile devices since new year

Hello,

Is dropbox no longer supporting &raw=1 files being displayed on external websites on mobile?
It was working fine before new years.

See here: https://www.arclab.space/a/0301-pdf-topo

Odd that it works fine on desktop devices, or via chrome inspect using mobile viewport sizes, but not on actual mobile phones.
iOS returns nada, and android says 'click to open PDF' but it never works.
if you want to see how its meant to look, view the link on a desktop PC/laptop.

Please advise if this is a glitch, or if youre phasing out &raw=1 iframe display functionality.

Thanks for your time.


  • The raw=1 functionality itself should still work, but there's no particular guarantee on its use with an embed or iframe HTML element. You can find the official documentation for that here; that doesn't have any mention of iframe or embed.

     

    That said, when I tried the sample page you shared on iOS, it did actually show the content of the file, though it appears there's no white background, and the black text is not visible as it blends in to the black background of the web site itself. Here's a screenshot of what I see:

     

    I also tried accessing the raw=1 shared link from your sample page directly in the browser, and that did work visibly:

     

    And I also made a lightweight page with just an embed element using the shared link from your sample page, and that also displayed visibly:

     

    Does those match what you're currently seeing as well?

     

    On Android, I do not see the file, and instead get an "Open" button. It sounds like that's expected though, as mobile Chrome apparently doesn't support previewing PDF files, per this open Chromium issue.

    • jonokivex's avatar
      jonokivex
      Helpful | Level 5

      Regarding android:
      Yes, an open button appears - but it doesn't open. PDFs loaded from sources other than dropbox open fine.

      The black version is what we see too. Its also weirdly condensed width wise, and some grey lines & text are missing but not others. Its very strange.

      Your simplified version works, but maybe if it had a black background the problem would be the same? For instance, it still compresses the width on mobile rather than shrinking to fit.

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        Regarding the iOS display issues, since the content is there, albeit not displayed properly, it sounds like the shared link itself is working in that it is returning the file data. We can't really offer help with the display of content on web pages, as it looks like that would be more of a matter of HTML/CSS.

         

        As for the Android issue, do you know if there is something in particular about how Dropbox is serving these that is problematic for this use case? I can't make any promises, but if there's something specific wrong about how Dropbox returns the file data I can ask the team to look into it.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,888 PostsLatest Activity: 21 hours ago
326 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!