One of the projects I'm working on right now requires being able to upload product images to Shopify. These images
are sourced via Dropbox links, which look something like this: https://www.dropbox.com/s/[some id]/[filename].jpg?dl=0
.
Shopify has a feature which allows for API image uploads via URL or via a Base64 encoded attachment. However, when you try and link a Dropbox URL, you will likely encounter an error since Dropbox file extensions are "faux", and aren't the actual location of the image you want.
Searching for a solution to this yeilds little help. The common solution from Shopify indicates that you'd have to download
the images via your URL (to do this you must pass ?dl=1
), and either encode it to base64 or host it somewhere on your own,
then attach the image to your API request.