<?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>How catch image upload event (document library) and create copy of it?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119929798" />
  <subtitle>How catch image upload event (document library) and create copy of it?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119929798</id>
  <updated>2026-04-06T21:51:40Z</updated>
  <dc:date>2026-04-06T21:51:40Z</dc:date>
  <entry>
    <title>RE: How catch image upload event (document library) and create copy of it?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119941510" />
    <author>
      <name>Nikita Laitinen</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119941510</id>
    <updated>2020-09-14T11:27:20Z</updated>
    <published>2020-09-14T11:27:20Z</published>
    <summary type="html">I got the idea. Thank you!</summary>
    <dc:creator>Nikita Laitinen</dc:creator>
    <dc:date>2020-09-14T11:27:20Z</dc:date>
  </entry>
  <entry>
    <title>RE: How catch image upload event (document library) and create copy of it?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119930561" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119930561</id>
    <updated>2020-09-11T11:25:32Z</updated>
    <published>2020-09-11T11:25:32Z</published>
    <summary type="html">Hi ,&lt;br /&gt;You can write  Liferay Service Wrapper  for DLAppService , whenever an image is uploaded it will call its respected method and  you can write your custom logic for creating images of diff sizes inside it.&lt;br /&gt;You can refer below link for creating service wrapper&lt;br /&gt;&lt;a href="https://help.liferay.com/hc/en-us/articles/360018159951-Overriding-Liferay-Services-Service-Wrappers-"&gt;https://help.liferay.com/hc/en-us/articles/360018159951-Overriding-Liferay-Services-Service-Wrappers-&lt;/a&gt;</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2020-09-11T11:25:32Z</dc:date>
  </entry>
  <entry>
    <title>How catch image upload event (document library) and create copy of it?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119929797" />
    <author>
      <name>Nikita Laitinen</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119929797</id>
    <updated>2020-09-11T09:01:20Z</updated>
    <published>2020-09-11T09:01:20Z</published>
    <summary type="html">Hello!&lt;br /&gt;How to be with the following idea?&lt;br /&gt;When user upload a new image into the document library I want automatically create copies of the original one, but with different sizes&lt;br /&gt;I don&amp;#39;t know in what direction to go to achieve it&lt;br /&gt;Could someone help me, please?&lt;br /&gt;&lt;br /&gt;I guess I have to catch image upload event, do some logic to create new images, save them and continue the original action&lt;br /&gt;But I have zero ideas about how this module should look, do I need to override some service? if yes, which one? Any other advice&lt;br /&gt;​​​​​​​Thanks a lot in advance</summary>
    <dc:creator>Nikita Laitinen</dc:creator>
    <dc:date>2020-09-11T09:01:20Z</dc:date>
  </entry>
</feed>
