Cut the Clutter: Test Ignore Files Feature - sign up to become a beta tester here!
Forum Discussion
BB
9 years agoNew member | Level 2
How to use a Drobox photo in an online forum (CSS)
I've researched this topic, buy can't seem to find any info that is correct. How do you use photos, .pngs, or gifs that are in my Dropbox and have them show up in an online forum that uses CSS? I've seen someone say that after creating a public link, you change the ending to raw=1 However, this does not work. The photo when placed between image tags [IMG][/IMG] does not show up. Is there a solution?
- This isn't officially supported, but this may work instead:
[IMG]https://dl.dropboxusercontent.com/s/ucf6qub7ueuzbez/holder.jpg[/IMG]
8 Replies
- Greg-DB9 years ago
Dropbox Community Moderator
It sounds like you're referring this feature of shared links:
https://www.dropbox.com/help/201
Can you share the code you have so far that isn't working? Thanks in advance! - BB9 years agoNew member | Level 2
https://www.dropbox.com/s/ucf6qub7ueuzbez/holder.jpg?dl=0
Although in reading that link you just gave, it basically states that it doesn't work after Oct. 3rd of this year if I'm reading that correctly.
- Greg-DB9 years ago
Dropbox Community Moderator
That note is about hosting and rendering .html files in particular. Image files are fine.
For example, using your sample link, you can embed it as an image using:
<img src="https://www.dropbox.com/s/ucf6qub7ueuzbez/holder.jpg?raw=1">
I just tried that out and it worked for me. (You'll have to translate that for the syntax for whatever forum you're using though.) - BB9 years agoNew member | Level 2
But in posting on forums when you just need a direct link to a photo between image tags [IMG]https://www.dropbox.com/s/ucf6qub7ueuzbez/holder.jpg?raw=1[/IMG] it doesn't work and says that dynamic pages in the image tags are not allowed. ???
- Greg-DB9 years ago
Dropbox Community Moderator
This isn't officially supported, but this may work instead:
[IMG]https://dl.dropboxusercontent.com/s/ucf6qub7ueuzbez/holder.jpg[/IMG] - BB9 years agoNew member | Level 2
Whoa......I have no clue how you did that, but it works! :) Looks like just changing the first part to dl.dropboxusercontent.com and keepign the rest does the trick. THANK YOU! :)
- dude69359 years agoNew member | Level 2
Can you also resize the image using such a link?
- Greg-DB9 years ago
Dropbox Community Moderator
No, shared links don't offer resizing functionality.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,037 PostsLatest Activity: 5 hours ago
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!