Validation failed: .jpg is not a valid image file type.

Solved
goat6323
New Member
2 0 1

Hi,

I'm using a CSV file to import products into Shopify and a small number of the products are being imported successfully but most are being rejected with the same error message:

Validation failed: /images/products/tablet/RC0001RZ-22.jpg is not a valid image file type.

In this particular case, the complete URL of the image is https://d365pjkgt5rd4j.cloudfront.net/images/products/tablet/RC0001RZ-22.jpg

I can confirm this is a valid image file, it does render correctly, it validates as an image file according to tests I've done so I can't see what the problem is. All the images that I'm trying to import are saved in the same publicly accessible AWS Cloudfront location. Does anyone know why Shopify is rejecting some and not others?

Of course, the most frustrating part is that, if any one of the images specified for a product fails, the whole product is not imported.

Many thanks.

0 Likes
channelup
Shopify Partner
330 14 47

This is an accepted solution.

Hi

You need to ensure you can actually view the image in a browser for it to be usable in a csv import.

For example: https://cdn.shopify.com/shopifycloud/brochure/assets/retail/pos/index/product-item-ui-small-6ac97d62...

The image link you added forces a file download rather than image view.

Regards

Tom

 

Channelup is a product data management solution helping Shopify stores automate their processes.
If you require custom development or would like to test out our features contact me at tom@channelup.io
goat6323
New Member
2 0 1

Thanks Tom. AWS S3 had incorrect content-types specified for the files that weren't working. I managed to run a CLI command on the S3 bucket to correct this and it's all working correctly now.

Many thanks for taking the time to respond.