• Resolved raphiiwarren

    (@raphiiwarren)


    I am working on a .csv-Generator for a colleague of mine to upload products of our main company to his sub company online store run with WooCommerce. The tool will be run everyday to check if any of the motorcycles got sold and needs to be removed from the sub company store.

    As for now everything works except getting the images. These are hosted on a third party site where we sell our motorcycles. I get the images with the API of that third party. The link to the image is machine readable. Example: https://img.classistatic.de/api/v1/mo-prod/images/a4/a4e22aa0-472e-44e8-aa14-6cb4afa03a4e?rule=mo-360.jpg

    When he tries to upload the .csv file with the basic importer the pictures are declined with: “Invalid image: Sorry, you are not allowed to upload that file type.” My guess is based on the documentation that I am coming through this problem: “External URLs are supported and imported into the Media Library if used, provided the images are directly accessible and not behind a redirect script (as happens on some cloud storage services).”

    Am I right with the guess and if yes, is there any way to work around that?

Viewing 1 replies (of 1 total)
  • Hi @raphiiwarren,

    Am I right with the guess and if yes, is there any way to work around that?

    You’re correct in your understanding. WooCommerce’s Product CSV importer does not support images that are hosted behind a redirect script or are not directly accessible.

    To resolve this issue, you could consider downloading the images from the third-party site and uploading them directly to your WordPress media library, and then reference those image URLs in your CSV file. Alternatively, if you have control over the third-party site, you could adjust the settings so that the images are directly accessible.

    I hope this helps! If you need further assistance, feel free to reach out.

    Best regards,

Viewing 1 replies (of 1 total)

The topic ‘Invalid Image from URL on csv Import’ is closed to new replies.