External Images and Dropbox

Scott M. asked 4 years ago

Is Dropbox not compatible with External Images? Here is a sample link https://www.dropbox.com/s/mqprfsnxghdtbhx/1083.jpg?dl=0

When I hit preview on the product listing page in admin its just says Error URL Image

1 Answers
Dave Hilditch Staff answered 4 years ago

Despite URL appearances, https://www.dropbox.com/s/mqprfsnxghdtbhx/1083.jpg is not actually an image URL – it’s a web page.
If you visit that page then right click the image, you’ll find the following image URL:
That image URL should work in External Images.
Alternatively, if you change ?dl=0 to ?dl=1 then that should probably work too:
Edit: Also – some extra info – Dropbox don’t like to be used as a CDN, similarly with Google Drive. It actually goes against their terms of service. It won’t matter unless/until you get a lot of traffic, but just a word of warning for using them as your CDN.
Also – this page here says change the URL parameter from ?dl=0 to ?raw=1 and then it should just be the image URL and that should work for you.
But please heed the warning on that page:
[dropbox] share links have a limited amount of bandwidth per day, and if you’re linking to large files it could be very easy to exceed that limit and have ALL of your links banned temporarily. Simply put, while you can serve files out of Dropbox, it is not a CDN and you probably shouldn’t use it as one.

Your Answer

Super Speedy Plugins