Welcome! Log In Create A New Profile

Advanced

Embedded images from Dropbox don't work

Posted by dc42 
Embedded images from Dropbox don't work
December 28, 2013 06:14PM
If I try to link to my images hosted on Dropbox, then in place of the image in my post I get an "Image error" message. Here is an example:



I think this is because Dropbox links are https, and Phorum doesn't understand https. If I change the https: to http: then I get this instead:



Is there a workaround? Can anything be done to allow images on Dropbox to work in these forums? I don't want to have to open another photo sharing account just for these forums.

Thanks - DC

Edited 1 time(s). Last edit at 12/28/2013 06:15PM by dc42.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].

Re: Embedded images from Dropbox don't work
December 28, 2013 09:11PM
from memmory you have to put the image in you dropbox's public folder then it should show up properly




the image above is in my public folder if it works you should see it

Edited 1 time(s). Last edit at 12/28/2013 09:12PM by thejollygrimreaper.




-=( blog )=- -=( thingiverse )=- -=( 3Dindustries )=- -=( Aluhotend - mostly metal hotend)=--=( Facebook )=-



Re: Embedded images from Dropbox don't work
December 29, 2013 03:44AM
Reaper, thanks very much, that fixed it for me.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Embedded images from Dropbox don't work
January 01, 2014 05:35AM
Quote

I think this is because Dropbox links are https, and Phorum doesn't understand https.

Phorum unterstands https fine, but when you click on the link to such a JPEG file, you don't get a picture file back, but some HTML with this file embedded, instead. In other words, Dropbox violates the Internet protocol and there's not much what one can do about it.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Embedded images from Dropbox don't work
January 01, 2014 07:10AM
Quote
Traumflug
Quote

I think this is because Dropbox links are https, and Phorum doesn't understand https.

Phorum unterstands https fine, but when you click on the link to such a JPEG file, you don't get a picture file back, but some HTML with this file embedded, instead. In other words, Dropbox violates the Internet protocol and there's not much what one can do about it.

Actually no, there is no rule that says a URI must return a particular type of content. The content type is specified in the return HTTP header. The content should then be displayed by a web client, whether it is HTML, jpg or whatever. Obviously Dropbox works fine with internet browsers, and Dropbox is not violating any internet protocol smiling smiley

It's a limitation of Phorum.


Hmm, strike that. I can't find a definitive statement in the HTML specs.

Either way, Dropbox are deliberately not making it easy to hotlink images, and it seems the Public folder feature has been withdrawn for new users. There is another hack that works for now: replace "www" with "dl" in the URI e.g.

http://dl.dropboxusercontent.com/s/sj0ppwuhdonc4or/example.png



Edited 1 time(s). Last edit at 01/01/2014 01:04PM by bobc.


What is Open Source?
What is Open Source Hardware?
Open Source in a nutshell: the Four Freedoms
CC BY-NC is not an Open Source license
Re: Embedded images from Dropbox don't work
January 02, 2014 07:27AM
Let's say it's highly unusual to send a HTML document in response to a request for a JPEG. Violation or not, they could make these links ending in .html easily.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Sorry, only registered users may post in this forum.

Click here to login