<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Adding images/attachments to liferay commerce using the headless API</title>
  <link rel="self" href="https://liferay.dev/de/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122672246" />
  <subtitle>Adding images/attachments to liferay commerce using the headless API</subtitle>
  <id>https://liferay.dev/de/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122672246</id>
  <updated>2026-04-17T19:00:30Z</updated>
  <dc:date>2026-04-17T19:00:30Z</dc:date>
  <entry>
    <title>Adding images/attachments to liferay commerce using the headless API</title>
    <link rel="alternate" href="https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122672245" />
    <author>
      <name>Markus Frietsch</name>
    </author>
    <id>https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122672245</id>
    <updated>2024-05-24T13:09:04Z</updated>
    <published>2024-05-23T20:57:22Z</published>
    <summary type="html">&lt;p&gt;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&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;upload images using a url&amp;nbsp;&lt;/li&gt;
  &lt;li&gt;upload images by base64&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;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?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</summary>
    <dc:creator>Markus Frietsch</dc:creator>
    <dc:date>2024-05-23T20:57:22Z</dc:date>
  </entry>
</feed>
