Uploading image from link using API

Solved

Uploading image from link using API

gmonacho
Tourist
3 1 0

Hello,
I developped a connector wich can publish products on shopify using the ADMIN REST API.
Everything was working fine. But recently some users (and i) encountered an issue.
I am no longer able to upload from links to the products.

Capture.PNG

Here is some links examples : 

- image 0 

- image 1

- image 2

Images dimensions are 1024x1024 and their sizes are almost 50~ Ko.
If i download the image first then upload it manually (from file) to the product it works fine.
Can someone give me more informations about that issue ?  Why are my images  working from file and not from link?
Gael

Accepted Solution (1)

gmonacho
Tourist
3 1 0

This is an accepted solution.

I finally figured it out.
My S3 images content-type was setup to binary/octet-stream. If a change it to image/jpeg the url upload works correclty.

View solution in original post

Replies 3 (3)

Don
Shopify Staff
2787 199 397

Hi there @gmonacho!

 

I just wanted to let you know I have moved your query here to our dedicated API forums.

 

As we're not able to provide developer-level API support ourselves we have provided these forums as a place to ask about all things API.

 

These threads are monitored and responded to by our developers and Partners, so it's the best place for getting useful feedback for queries like these.

 

You can also check out our developer help docs on the REST Admin API here for more info. 

Don | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

gmonacho
Tourist
3 1 0

Thank you a lot.

gmonacho
Tourist
3 1 0

This is an accepted solution.

I finally figured it out.
My S3 images content-type was setup to binary/octet-stream. If a change it to image/jpeg the url upload works correclty.