<?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>DL upload file limit</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114020983" />
  <subtitle>DL upload file limit</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114020983</id>
  <updated>2026-04-04T09:03:28Z</updated>
  <dc:date>2026-04-04T09:03:28Z</dc:date>
  <entry>
    <title>RE: DL upload file limit</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114051686" />
    <author>
      <name>Yan Paing</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114051686</id>
    <updated>2019-06-18T07:08:17Z</updated>
    <published>2019-06-18T07:08:17Z</published>
    <summary type="html">Thanks Christoph, I updated with file.length() method and it is working fine. </summary>
    <dc:creator>Yan Paing</dc:creator>
    <dc:date>2019-06-18T07:08:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: DL upload file limit</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114030425" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114030425</id>
    <updated>2019-06-17T13:55:05Z</updated>
    <published>2019-06-17T13:55:05Z</published>
    <summary type="html">The java.io.File.getTotalSpace() method returns the size of the partition, not the size of the file.</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2019-06-17T13:55:05Z</dc:date>
  </entry>
  <entry>
    <title>RE: DL upload file limit</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114029671" />
    <author>
      <name>Yan Paing</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114029671</id>
    <updated>2019-06-17T13:10:21Z</updated>
    <published>2019-06-17T13:10:21Z</published>
    <summary type="html">Hi Christoph,&lt;br /&gt;I am using liferay CE 7.1.3.  Please see the attached view.jsp and UserCreationPortlet.java for code. Thank you</summary>
    <dc:creator>Yan Paing</dc:creator>
    <dc:date>2019-06-17T13:10:21Z</dc:date>
  </entry>
  <entry>
    <title>RE: DL upload file limit</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114021842" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114021842</id>
    <updated>2019-06-16T15:44:12Z</updated>
    <published>2019-06-16T15:44:12Z</published>
    <summary type="html">Please show us the code of UserCreationPortlet. Also, which version of Liferay do you use?</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2019-06-16T15:44:12Z</dc:date>
  </entry>
  <entry>
    <title>DL upload file limit</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114020982" />
    <author>
      <name>Yan Paing</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114020982</id>
    <updated>2019-06-16T06:49:10Z</updated>
    <published>2019-06-16T06:49:10Z</published>
    <summary type="html">Dear All,I tried to upload the file and actual file size is only 3 bytes. But while i tried to upload than it is change the file size and become big. After that the exception is coming out as per following. I am taking example from &lt;a href="http://liferayiseasy.blogspot.com/2015/07/how-to-upload-documents-and-files-in.html"&gt;http://liferayiseasy.blogspot.com/2015/07/how-to-upload-documents-and-files-in.html&lt;/a&gt;. Please suggest, i tried to maximize the file size limit in portal-ext.properties (dl.file.max.size=1048576000, com.liferay.portal.upload.UploadServletRequestImpl.max.size=1048576000). i would like to know 1. why the file size is big after upload to the portal, 2. I update portal-ext.properties and restart the server but it is not effect on maximum file size. Please suggest. Thank you2019-06-16 06:36:20.227 INFO  [http-nio-8080-exec-1][UserCreationPortlet:121] Calling fileUpload()&lt;br /&gt;2019-06-16 06:36:20.228 INFO  [http-nio-8080-exec-1][UserCreationPortlet:123] File Name : aaa.txt&lt;br /&gt;2019-06-16 06:36:20.230 INFO  [http-nio-8080-exec-1][UserCreationPortlet:125] file size : 420210536448&lt;br /&gt;2019-06-16 06:36:20.231 INFO  [http-nio-8080-exec-1][UserCreationPortlet:128] mimeType :text/plain&lt;br /&gt;2019-06-16 06:36:20.231 INFO  [http-nio-8080-exec-1][UserCreationPortlet:131] Title=&amp;gt;aaa.txt&lt;br /&gt;2019-06-16 06:36:20.233 INFO  [http-nio-8080-exec-1][UserCreationPortlet:137] Size Before adding file entry is : 420210536448&lt;br /&gt;2019-06-16 06:36:20.243 ERROR [http-nio-8080-exec-1][UserCreationPortlet:143] 420210536448 exceeds the maximum permitted size of 104857600 for file aaa.txt&lt;br /&gt;com.liferay.document.library.kernel.exception.FileSizeException: 420210536448 exceeds the maximum permitted size of 104857600 for file aaa.txt</summary>
    <dc:creator>Yan Paing</dc:creator>
    <dc:date>2019-06-16T06:49:10Z</dc:date>
  </entry>
</feed>
