Re: Make Scarab accept attachments with 1GB file size

Jorge Uriarte Aretxaga <[email protected]> Wed, 24 Mar 2010 21:49:42 +0100
Newsgroups gmane.comp.java.scarab.user
Message-ID <[email protected]>
------=_Part_61870_4319622.1269463792449
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Sorry, late answer but... 1.5G! Are you sure tomcat itself has not a
configurated limit, or maybe commons-fileupload? (Apache httpd has a limit,
for example)
_
Jorge Uriarte Aretxaga
http://www.gailen.es
http://www.linkedin.com/in/jorgeuriarte


On Thu, Mar 4, 2010 at 11:13 AM, FRED.YY.LIN =E6=9E=97=E5=AE=A5=E5=BB=B6
<[email protected]>wrote:

>  Thanks for the recommendation. I  had a try but it was not working.
>
> I modified the intake.xml to make the maxlength 10 times the original
> value and rebuilt again.
>
> I used window's search function to figure out what was changed after
> rebuild.
>
> It turned out to be the intake.xml, and the property files
>
> I copy the whole folder of the rebuild outcome under the webapp and resta=
rt
> tomcat again.
>
> the same error occured
>
> I change the max file to 10 times in the application configuration under
> administrator's privilege and restart again.
>
> Still the same error.
>
> Regards,
>
>
> Fred
>
>  ------------------------------
> *From:* Johannes Hochstadter [mailto:[email protected]]
> *Sent:* Thursday, March 04, 2010 5:30 PM
> *To:* [email protected]
> *Subject:* Re: Make Scarab accept attachments with 1GB file size
>
> Hi,
>
> I never did that before, but I think you have to modify Scarab's
> intake.xml.
>
> Look for "group name=3D"Attachment"" and modify value for "maxLength" for
> node "rule" in "File", rebuild and restart.
>
> I cannot see what effect the property changes you mentioned should have f=
or
> Scarab as the mentioned property is not used in any other file Sf scarab,
> except the property file...
>
> Good Luck.
>
> Am 04.03.2010 02:52, schrieb FRED.YY.LIN ?L?=C9=A9?:
>
>
>  scarab.file.max.size
>
>
>
> scarab.file.max.size value to make the maxinum upload file size bigger.
>  Does anyone know what else I shall do the make Scarab accept attachments
> with the size of 1GB ?
>  Thanks,
>  Fred
>
> *************************************************************************=
************************************************
> This email message, including any attachments, is for the sole use of the
> intended recipient(s) and may contain confidential and privileged
> information. Any unauthorized review, use, disclosure or distribution is
> prohibited. If you are not the intended recipient, please contact the sen=
der
> by reply e-mail and destroy all copies of the original message. [Delta
> Electronic, INC. Taiwan]
>
> *************************************************************************=
************************************************
>
>
> --
>
> Johannes H=C3=B6chst=C3=A4dterwww.memocomp.de
>
>
> *************************************************************************=
************************************************
>
> This email message, including any attachments, is for the sole use of the
> intended recipient(s) and may contain confidential and privileged
> information. Any unauthorized review, use, disclosure or distribution is
> prohibited. If you are not the intended recipient, please contact the sen=
der
> by reply e-mail and destroy all copies of the original message. [Delta
> Electronic, INC. Taiwan]
>
> *************************************************************************=
************************************************
>

------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=3D456&dsMessageId=3D24=
64517

To unsubscribe from this discussion, e-mail: [[email protected]=
is.org].
------=_Part_61870_4319622.1269463792449
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Sorry, late answer but... 1.5G! Are you sure tomcat itself has not a config=
urated limit, or maybe commons-fileupload? (Apache httpd has a limit, for e=
xample)<br>_<br>Jorge Uriarte Aretxaga<br><a href=3D"http://www.gailen.es">=
http://www.gailen.es</a><br>
<a href=3D"http://www.linkedin.com/in/jorgeuriarte">http://www.linkedin.com=
/in/jorgeuriarte</a> <br>
<br><br><div class=3D"gmail_quote">On Thu, Mar 4, 2010 at 11:13 AM, FRED.YY=
.LIN =E6=9E=97=E5=AE=A5=E5=BB=B6 <span dir=3D"ltr">&lt;<a href=3D"mailto:FR=
[email protected]">[email protected]</a>&gt;</span> wrote:<br><=
blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 2=
04, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div text=3D"#000000" bgcolor=3D"#ffffff">
<div dir=3D"ltr" align=3D"left"><font face=3D"=E6=96=B0=E7=B4=B0=E6=98=8E=
=E9=AB=94"><font color=3D"#0000ff">T<span>hanks for the recommendation. I=
=C2=A0 had a try but it=20
was not working.</span></font></font></div>
<div dir=3D"ltr" align=3D"left"><font face=3D"=E6=96=B0=E7=B4=B0=E6=98=8E=
=E9=AB=94"><font color=3D"#0000ff"><span></span></font></font>=C2=A0</div>
<div dir=3D"ltr" align=3D"left"><font face=3D"=E6=96=B0=E7=B4=B0=E6=98=8E=
=E9=AB=94"><font color=3D"#0000ff"><span>I modified the intake.xml to make =
the maxlength=C2=A010=20
times the original value=C2=A0and rebuilt again.</span></font></font></div>
<div dir=3D"ltr" align=3D"left"><font face=3D"=E6=96=B0=E7=B4=B0=E6=98=8E=
=E9=AB=94"><font color=3D"#0000ff"><span></span></font></font>=C2=A0</div>
<div dir=3D"ltr" align=3D"left"><font face=3D"=E6=96=B0=E7=B4=B0=E6=98=8E=
=E9=AB=94"><font color=3D"#0000ff"><span>I used window&#39;s search functio=
n to figure out what was=20
changed after rebuild.</span></font></font></div>
<div dir=3D"ltr" align=3D"left"><font face=3D"=E6=96=B0=E7=B4=B0=E6=98=8E=
=E9=AB=94"><font color=3D"#0000ff"><span></span></font></font>=C2=A0</div>
<div dir=3D"ltr" align=3D"left"><font face=3D"=E6=96=B0=E7=B4=B0=E6=98=8E=
=E9=AB=94"><font color=3D"#0000ff"><span>It turned out to be the intake.xml=
, and the property=20
files</span></font></font></div>
<div dir=3D"ltr" align=3D"left"><font face=3D"=E6=96=B0=E7=B4=B0=E6=98=8E=
=E9=AB=94"><font color=3D"#0000ff"><span></span></font></font>=C2=A0</div>
<div dir=3D"ltr" align=3D"left"><font face=3D"=E6=96=B0=E7=B4=B0=E6=98=8E=
=E9=AB=94"><font color=3D"#0000ff"><span>I copy the whole folder of the reb=
uild outcome under=20
the webapp and restart tomcat again.</span></font></font></div>
<div dir=3D"ltr" align=3D"left"><font face=3D"=E6=96=B0=E7=B4=B0=E6=98=8E=
=E9=AB=94"><font color=3D"#0000ff"><span></span></font></font>=C2=A0</div>
<div dir=3D"ltr" align=3D"left"><font face=3D"=E6=96=B0=E7=B4=B0=E6=98=8E=
=E9=AB=94"><font color=3D"#0000ff"><span>the same error occured</span></fon=
t></font></div>
<div dir=3D"ltr" align=3D"left"><font face=3D"=E6=96=B0=E7=B4=B0=E6=98=8E=
=E9=AB=94"><font color=3D"#0000ff"><span></span></font></font>=C2=A0</div>
<div dir=3D"ltr" align=3D"left"><font face=3D"=E6=96=B0=E7=B4=B0=E6=98=8E=
=E9=AB=94"><font color=3D"#0000ff"><span>I change the max file to 10 times =
in the application=20
configuration under administrator&#39;s privilege and restart=20
again.</span></font></font></div>
<div dir=3D"ltr" align=3D"left"><font face=3D"=E6=96=B0=E7=B4=B0=E6=98=8E=
=E9=AB=94"><font color=3D"#0000ff"><span></span></font></font>=C2=A0</div>
<div dir=3D"ltr" align=3D"left"><font face=3D"=E6=96=B0=E7=B4=B0=E6=98=8E=
=E9=AB=94"><font color=3D"#0000ff"><span>Still the same error.</span></font=
></font></div>
<div dir=3D"ltr" align=3D"left"><font face=3D"=E6=96=B0=E7=B4=B0=E6=98=8E=
=E9=AB=94"><font color=3D"#0000ff"><span></span></font></font>=C2=A0</div>
<div dir=3D"ltr" align=3D"left"><font face=3D"=E6=96=B0=E7=B4=B0=E6=98=8E=
=E9=AB=94"><font color=3D"#0000ff"><span>Regards,</span></font></font></div=
>
<div dir=3D"ltr" align=3D"left"><font face=3D"=E6=96=B0=E7=B4=B0=E6=98=8E=
=E9=AB=94"><font color=3D"#0000ff"><span></span></font></font>=C2=A0</div>
<div dir=3D"ltr" align=3D"left"><font face=3D"=E6=96=B0=E7=B4=B0=E6=98=8E=
=E9=AB=94"><font color=3D"#0000ff"><span></span></font></font>=C2=A0</div>
<div dir=3D"ltr" align=3D"left"><font face=3D"=E6=96=B0=E7=B4=B0=E6=98=8E=
=E9=AB=94"><font color=3D"#0000ff"><span>Fred</span></font></font></div><br=
>
<div dir=3D"ltr" lang=3D"zh-tw" align=3D"left">
<hr>
<font size=3D"2" face=3D"Tahoma"><b>From:</b> Johannes Hochstadter=20
[mailto:<a href=3D"mailto:[email protected]" target=3D"_blank">jho=
[email protected]</a>] <br><b>Sent:</b> Thursday, March 04, 2010=20
5:30 PM<br><b>To:</b> <a href=3D"mailto:[email protected]" target=3D"=
_blank">[email protected]</a><br><b>Subject:</b> Re: Make Scarab=20
accept attachments with 1GB file size<br></font><br></div><div class=3D"im"=
>
<div></div>Hi,<br><br>I never did that before, but I think you have to modi=
fy=20
Scarab&#39;s intake.xml.<br><br>Look for &quot;group name=3D&quot;Attachmen=
t&quot;&quot; and modify value=20
for &quot;maxLength&quot; for node &quot;rule&quot; in &quot;File&quot;, re=
build and restart. <br><br>I cannot=20
see what effect the property changes you mentioned should have for Scarab a=
s the=20
mentioned property is not used in any other file Sf scarab, except the prop=
erty=20
file...<br><br>Good Luck.<br><br></div>Am 04.03.2010 02:52, schrieb FRED.YY=
.LIN ?L?=C9=A9?:=20

<blockquote type=3D"cite">
 =20
  <div><span><font color=3D"#0000ff" face=3D"?s?=D3=A9?Dear All,&lt;/font&g=
t;&lt;/span&gt;&lt;/div&gt;
  &lt;div&gt;&lt;span class=3D"></font></span>=C2=A0</div>
  <div><span><font color=3D"#0000ff" face=3D"?s?=D3=A9?I set=C2=A0&lt;/font=
&gt;&lt;/span&gt;&lt;span class=3D">=C2=A0</font></span>scarab.file.max.siz=
e<span><font color=3D"#0000ff" face=3D"?s?=D3=A9?=C2=A0=C2=A0to
around=C2=A01.5 GB (10 times of the original defined value) and reboot
Tomcat and MySQL again&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
  &lt;div&gt;&lt;span class=3D"></font></span>=C2=A0</div><div class=3D"im"=
>
  <div><span><font color=3D"#0000ff" face=3D"?s?=D3=A9?And then=C2=A0I atta=
ched a file sizd 170 MB,=C2=A0 the result
was=C2=A0something like =C2=A0"></font></span></div>
  <div><span></span>=C2=A0</div>
  <div><span><font color=3D"#0000ff" face=3D"?s?=D3=A9?but when I put a fil=
e less than 150 MB which was the
original system configuration value. &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
  &lt;div&gt;&lt;span class=3D"></font></span>=C2=A0</div>
  <div><span><font color=3D"#0000ff" face=3D"?s?=D3=A9?File was attached to=
 scarab successfully.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
  &lt;div&gt;&lt;span class=3D"></font></span>=C2=A0</div>
  <div><span><font color=3D"#0000ff" face=3D"?s?=D3=A9?It seems that I cann=
ot only increase the &lt;font
 color=3D">scarab.file.max.size</font><span><font color=3D"#0000ff" face=3D=
"?s?=D3=A9?=C2=A0&lt;font
 color=3D"> value to make the maxinum upload file size=20
  bigger.</font></span></span></div>
  <div><span><font color=3D"#000000" face=3D"?s?=D3=A9?&lt;span class=3D"><=
/font></span></div>
  <div><span><font color=3D"#000000" face=3D"?s?=D3=A9?&lt;span class=3D">D=
oes anyone know what else I shall do the=20
  make Scarab accept attachments with the size of 1GB=20
  ?</font></span></div>
  <div><span><font color=3D"#000000" face=3D"?s?=D3=A9?&lt;span class=3D"><=
/font></span></div>
  <div><span><font color=3D"#000000" face=3D"?s?=D3=A9?&lt;span class=3D">T=
hanks,</font></span></div>
  <div><span><font color=3D"#000000" face=3D"?s?=D3=A9?&lt;span class=3D"><=
/font></span></div>
  <div><span><font color=3D"#000000" face=3D"?s?=D3=A9?&lt;span class=3D">F=
red</font></span></div>
  <table>
    <tbody>
    <tr>
      <td bgcolor=3D"#ffffff"><font color=3D"#000000">*********************=
***************************************************************************=
*************************<br>This=20
        email message, including any attachments, is for the sole use of th=
e=20
        intended recipient(s) and may contain confidential and privileged=
=20
        information. Any unauthorized review, use, disclosure or distributi=
on is=20
        prohibited. If you are not the intended recipient, please contact t=
he=20
        sender by reply e-mail and destroy all copies of the original messa=
ge.=20
        [Delta Electronic, INC.=20
        Taiwan]<br>********************************************************=
*****************************************************************<br></font=
></td></tr></tbody></table></div></blockquote><br><div class=3D"im"><pre co=
ls=3D"72">
--=20

Johannes H=C3=B6chst=C3=A4dter
<a href=3D"http://www.memocomp.de" target=3D"_blank">www.memocomp.de</a></p=
re></div></div>
<table><tbody><tr><td bgcolor=3D"#ffffff"><font color=3D"#000000">*********=
***************************************************************************=
*************************************<div class=3D"im"><br>
This email message, including any attachments, is for the sole use of the i=
ntended recipient(s) and may contain confidential and privileged informatio=
n. Any unauthorized review, use, disclosure or distribution is prohibited. =
If you are not the intended recipient, please contact the sender by reply e=
-mail and destroy all copies of the original message. [Delta Electronic, IN=
C. Taiwan]<br>

***************************************************************************=
**********************************************<br>
</div></font></td></tr></tbody></table>
</blockquote></div><br>

------=_Part_61870_4319622.1269463792449--