<?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>Disable versioning in document &amp; media</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120785764" />
  <subtitle>Disable versioning in document &amp; media</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120785764</id>
  <updated>2026-04-04T15:15:09Z</updated>
  <dc:date>2026-04-04T15:15:09Z</dc:date>
  <entry>
    <title>Disable versioning in document &amp; media</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120785763" />
    <author>
      <name>Aravinth Kumar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120785763</id>
    <updated>2021-05-17T13:54:52Z</updated>
    <published>2021-05-17T13:54:52Z</published>
    <summary type="html">&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;We would like to disable the versioning completely in documents &amp;amp;
  media, so that we always have one version. I m able to disable the
  version for particular article by passing DLVersionNumberIncrease.NONE
  in updateFileEntry method.&lt;br /&gt;Issue : We are able to download the
  file which is updated, it works as expected but we dont see the
  changes in control panel preview images / last updated time is not
  proper. Any inputs on this and do we have anyother way to disable the
  version completely through portal-ext or osgi/configs?  &lt;/p&gt;
&lt;table&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td id="LC1098"&gt;dlAppLocalService.updateFileEntry(&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;
      &lt;td id="L1099"&gt; &lt;/td&gt;&lt;td id="LC1099"&gt;long userId, long
        fileEntryId, String sourceFileName,&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;
      &lt;td id="L1100"&gt; &lt;/td&gt;&lt;td id="LC1100"&gt;String mimeType, String
        title, String description, String changeLog,&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;
      &lt;td id="L1101"&gt; &lt;/td&gt;&lt;td id="LC1101"&gt;DLVersionNumberIncrease
        dlVersionNumberIncrease, InputStream is,&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;
      &lt;td id="L1102"&gt; &lt;/td&gt;&lt;td id="LC1102"&gt;long size, ServiceContext serviceContext)&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;</summary>
    <dc:creator>Aravinth Kumar</dc:creator>
    <dc:date>2021-05-17T13:54:52Z</dc:date>
  </entry>
</feed>
