<?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 to change maximum permitted size (262144 bytes)</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121416505" />
  <subtitle>how to change maximum permitted size (262144 bytes)</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121416505</id>
  <updated>2026-04-04T22:03:13Z</updated>
  <dc:date>2026-04-04T22:03:13Z</dc:date>
  <entry>
    <title>how to change maximum permitted size (262144 bytes)</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121416504" />
    <author>
      <name>Scarletake Bwi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121416504</id>
    <updated>2022-05-06T12:49:16Z</updated>
    <published>2022-05-06T12:49:15Z</published>
    <summary type="html">&lt;p&gt;hi &lt;/p&gt;
&lt;p&gt;i used to use soap service generated by service builder, it's 6.2. &lt;/p&gt;
&lt;p&gt;now i use 7.4, liferay not support soap now.&lt;/p&gt;
&lt;p&gt;i try test me rest service via http://localhost:8080/api/jsonws&lt;/p&gt;
&lt;p&gt;
  &lt;img alt="" height="209"
    src="/documents/14/0/Image+3+%284%29.png/ce2fb641-f07b-fe7b-9fac-feb74176e0a7?t=1651830540283&amp;amp;imagePreview=1" width="609" /&gt;
  &lt;br /&gt;  &lt;/p&gt;
&lt;p&gt;it's simple service, but i have to put a long string. it return a
  exception message&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;The field jsonInfo exceeds its maximum permitted size of 262144 bytes&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;if i use url to trigger it, such like &lt;/p&gt;

&lt;p&gt;https://localhost:8080/api/jsonws/snm.record/feedback/json-info/&amp;lt;my string&amp;gt;&lt;/p&gt;
&lt;p&gt;it shows different error message&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;Request header is too large&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;
  &lt;img alt="" height="218"
    src="/documents/14/0/Image+4+%282%29.png/c8e8246c-d247-5916-9f86-47b1e9f2cedf?t=1651830803822&amp;amp;imagePreview=1" width="674" /&gt;
  &lt;br /&gt;  &lt;/p&gt;
&lt;p&gt;i try add properties in portal-ext.properties&lt;/p&gt;
&lt;p&gt;com.liferay.portal.upload.LiferayFileItem.threshold.size=10485760&lt;/p&gt;
&lt;p&gt;(i do not know is it right why or not, i just try search 262144, and
  this is only one value is 262144.)&lt;/p&gt;
&lt;p&gt;my questions is: if i was wrong, how to set the maximum permitted
  size. however, 262144 bytes is too small.&lt;/p&gt;
&lt;p&gt;and, i dont know why, sometimes, from api/jsonws, it shows nothing
  and console form server also shows nothing. just like it never been
    triggered.&lt;img alt="" height="136"
    src="/documents/14/0/Image+5+%281%29.png/73fc8676-1071-2c97-3ff9-03adb445fbd0?t=1651841275175&amp;amp;imagePreview=1" width="606" /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Scarletake Bwi</dc:creator>
    <dc:date>2022-05-06T12:49:15Z</dc:date>
  </entry>
</feed>
