Ask - Test
RE: Adding images to the liferay commerce product using the headless API
Adding images to the liferay commerce product using the headless API
New Member Posts: 3 Join Date: 6/20/22 Recent PostsI am trying to use the headless API to add images to the liferay commerce product. There are 2 API that are provided by liferay
- upload images using a url
- upload images by base64
I am able to upload images using the url but not using base64. is there any difference between their implementation. also how do I upload the multiple images at the same time?
RE: Adding images to the liferay commerce product using the headless API
Liferay Master Posts: 541 Join Date: 12/1/08 Recent PostsIf you are creating Products through the product endpoint (/o/headless-commerce-admin-catalog/v1.0/products) you can also include an array of Images using either the URL or base64 encoding to upload images. If you are uploading images to prroducts that have already been created you should be able to add /batch to the end of the URL you are using and include an array of images.
/o/headless-commerce-admin-catalog/v1.0/products/{productid}/images/by-base64/batch
/o/headless-commerce-admin-catalog/v1.0/products/{productid}/images/by-url/batch
What version of Liferay are you using (please include GA, FP or Update number). I just tested on Master and I am able to add an image using the following payload:
{
"src": "string",
"externalReferenceCode": "LFR-LOGO-64",
"title": {
"en_US": "Base64 Encoded Liferay Logo"
},
"type": 0,
"attachment": "iVBORw0KGgoAAAANSUhEUgAAAgAAAACiCAYAAAA3M3U2AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH4gkOFBI4MU7GigAAN+xJREFUeNrt3Xd4VFX6B/Dv9Jn03nshCQFCQguEFBJCE1BQ166Ia/nZu66ytlXXsq7ruq51USxYkd4JCYSeSoCQ3ntPptf7+wNFkbmTCZlJJsn7eR4fHz03d+6ce+ee9557zns4DMMwIIQQQsiEwqUqIIQQQigAIIQQQggFAIQQQgihAIAQQgghFAAQQgghhAIAQgghhFAAQAghhBAKAAghhBBCAQAhhBBCKAAghBBCCAUAhBBCCKEAgBBCCCEUABBCCCGEAgBCCCGEUABACCGEkMHwqQoIGf8MBgMYhgHDMAA44HI54HIp/ieEAgBCyLgyIJWiuqYWZeWVqK6pQ1NzM/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WFRaVQKVSDXs/IcFBePrxh3HdqpUQCARUsRQAEEIIsVUKhRL5hUXD2odIJEJmehoee/h+JEyfRpVKAQAhhBBbJ5fLIZXJruhvJWIxEuLjcOtNf8KyxZlwcnKkCmVBswAIIYTYFIPBgPyCImzash0n8vLR0NAEuUIBrVZ72bZcLhd2dhL4+/pi5ox4LF6YjqR5iXBzdaGKpACAEELIWA0Eurp70NDYhNq6OjS3tKG3rw9KhRJCoRAODvbw8vTEpMhwhIWGwMvLE3wejfCnAIAQQsi4xDDMhE7haym0GBAhhJCx9eRKjT8FAIQQQgihAIAQQgghFAAQQgghhAIAQgghhFAAQAghhFAAQAghhBAKAAghhBBCAQAhhBBCKAAghBBCCAUAhBBCCBlz/h8qHyN4AAPIGwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOC0wOS0xNFQyMDoxODo1NiswMDowMFbpAxEAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTgtMDktMTRUMjA6MTg6NTYrMDA6MDAntLutAAAAAElFTkSuQmCC"
}
RE: RE: Adding images to the liferay commerce product using the headless API
New Member Posts: 3 Join Date: 6/20/22 Recent PostsHi Jeffrey, the answer clears most of my doubts. All thats left is to test it on my machine.
FYI : I am currently using liferay-ce-portal-7.4.3.6-ga6.
Thank you
RE: RE: Adding images to the liferay commerce product using the headless API
New Member Posts: 5 Join Date: 5/23/24 Recent PostsAny idea how to do the same with attachments? I am struggling to add the filename and extension to it...
Powered by Liferay™