We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

ZeJ's avatar
ZeJ
Explorer | Level 4
4 years ago

Hotlinking a shared file - using raw=1 still fails

I have a png file  in my Public folder.  New shared file with new "create link" link.

 

I removed the ?dl=0 and replaced with ?raw=1 but the site I am embedding it on with img tags shows a broken link.

 

Looking back at other posts that were working, same problem.  Although those did not have raw=1 when posted and worked then but are broken now.

6 Replies

  • Megan's avatar
    Megan
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    Hey ZeJ, I hope you're doing well today! 

     

    Can you give me some more clarification on what you mean when you say a public folder? 

     

    Let me know, and we'll take it from there.

  • ZeJ's avatar
    ZeJ
    Explorer | Level 4
    4 years ago

    Megan,

    I put in the folder called Public.  I know that no longer is automatically shared, so I did create link.  and pasted that link in img tags in the forum in question.

     

  • Walter's avatar
    Walter
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago
    Do those shared links preview fine when you copy and paste them on a browser ZeJ?

    Could you forward us a screenshot of the error(s) you're seeing?
  • ZeJ's avatar
    ZeJ
    Explorer | Level 4
    4 years ago

    Walter yes they do.  Paste the link into a browser after making sure I was not logged into dropbox and it came up fine.  But not in the forum post preview.

     

    And as I say, older ones that did link before don't now, eg 

    https://www.bicycles.net.au/forums/viewtopic.php?f=23&t=103546#p1516210

    which has

    [img]https://www.dropbox.com/s/zmmd5zeebi56t9s/oldbikes.png?raw=1[/img]

    and that shows up fine in my browser and showed up fine when the post was posted.

     

    I don't see an error message as such, the items are on a forum.  What I see is the icon of a broken image link.

  • Jay's avatar
    Jay
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago
    Hi ZeJ, if the image previews normally via the URL, then the issue would lie with the forum itself, which might be unable to parse the link correctly.

    I'd recommend contacting them for further support, as it appears that this isn't related to Dropbox.
  • antoniooi's avatar
    antoniooi
    Helpful | Level 5
    3 years ago

    Hi Support,

     

    The raw=1 will also be redirected to dropboxusercontent.com as shown below:

    https://uc3de2d8f7cc317ef6bcb20a87bc.dl.dropboxusercontent.com/cd/0/inline/BrlX7DTv6g-kKntDHtI7yUN1L2CkICX3rAFRuB3S28DZv20ARWg7uDXhczv3z9hsUXeuN6FLZCEmVeumPaZ-P5D2WvK5cWQI0pTjgF-PQ8nKcAztSJl-HU3qxFTN04PvzaKMIUbZY9pSL4IsQPyia7FbsyGpCkXRVm2d3gsHMrpKkw/file#

     

    Note that some resolvers like Facebook post or Facebook Debugger no longer support this type of redirection like the one behaves like Google Drive images. No thumbnail image will be shown if we're using images stored on Dropbox (and Google Drive). Your raw=1 no longer works.

About Delete, edit, and organize

Solve issues with deleting, editing, and organizing files and folders in your Dropbox account with support from the Dropbox Community.

Need More Support

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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!