Adding images/attachments to liferay commerce using the headless API

Markus Frietsch, modified 1 Year ago.

Adding images/attachments to liferay commerce using the headless API

New Member Posts: 5 Join Date: 5/23/24 Recent Posts

I am trying to use the headless API to add images/attachments to a liferay commerce product. There are 2 API that are provided by liferay 

  1. upload images using a url 
  2. upload images by base64

I am able to upload images using base64, but I have no luck using the url version. Can anyone provide an example of how the "src" property should look like for a local file? 

 

Community
Company
Feedback