I am using the catalogProductRepositoryV1 (/V1/products) for importing a bunch of products (about 9.000). We have a very high fluctuation of products per day/import. So I would like to import images separated of those calls. I know, that the "media_gallery_entries" can import a Base64 string of the image, but with hundreds of products it would simply take too long.

If I would upload the images to a specific folder, would there then be a way to just set a path + filename during the import of the products?

That would have a way better performance.


Magento 2 REST API only allows base64 encoded media gallery inputs. It requires customization if you want to change the input as file name.

Try this extension to change the base64 input.

Known issue related to your issue.

  • Thank you very much for the fast reply! I do accept that as an answer, as there is no other way as it seems. Sadly that extension is 2 years old, I just hope it will work with future versions, tho. I will try it out! – Keenora Fluffball May 29 '20 at 10:19
  • Sadly it doesn't seem to work :/ It's enabled but I am still getting the same error. – Keenora Fluffball May 29 '20 at 10:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.