You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Kumar Kadiyala <ku...@yahoo.com> on 2008/05/22 16:49:45 UTC

problem with files > 2G

Hi,

I am using commons fileupload v1.2.1 and commons io
v1.3.2. I have used the sample code on the commons
fileupload site in my servlet. I am able to upload
files as large as 1.8G but if I try to upload a file >
2G, the upload fails. Specifically, the method
parseRequest is returning an empty list of items. 

List items = upload.parseRequest(i_request);

I have not used 
upload.setSizeMax(yourSize);
as I wanted to go with the default of -1. 

What am I missing? Help appreciated

Kumar



      

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Re: problem with files > 2G

Posted by Sarath Ambadas <sa...@gmail.com>.
If your methods are using int primitive data type, check if they are failing
at that point. I faced similar problem when I was handling 2 GB files. I had
to change all to long.



On 5/22/08, Kumar Kadiyala <ku...@yahoo.com> wrote:
>
> Hi,
>
> I am using commons fileupload v1.2.1 and commons io
> v1.3.2. I have used the sample code on the commons
> fileupload site in my servlet. I am able to upload
> files as large as 1.8G but if I try to upload a file >
> 2G, the upload fails. Specifically, the method
> parseRequest is returning an empty list of items.
>
> List items = upload.parseRequest(i_request);
>
> I have not used
> upload.setSizeMax(yourSize);
> as I wanted to go with the default of -1.
>
> What am I missing? Help appreciated
>
> Kumar
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>

RE: problem with files > 2G

Posted by "Timony, Michael" <Mi...@FMR.COM>.
You should test to see what getFileSizeMax() & getSizeMax() show? If
it's smaller than you need try setting getSizeMax().

Also, file size limits could also be set at the OS level, and can also
depend on the filesystem being used.

Luck
Mick



-----Original Message-----
From: Kumar Kadiyala [mailto:kumarkvgk@yahoo.com] 
Sent: Thursday, May 22, 2008 10:50 AM
To: user@commons.apache.org
Subject: problem with files > 2G

Hi,

I am using commons fileupload v1.2.1 and commons io v1.3.2. I have used
the sample code on the commons fileupload site in my servlet. I am able
to upload files as large as 1.8G but if I try to upload a file > 2G, the
upload fails. Specifically, the method parseRequest is returning an
empty list of items. 

List items = upload.parseRequest(i_request);

I have not used
upload.setSizeMax(yourSize);
as I wanted to go with the default of -1. 

What am I missing? Help appreciated

Kumar



      

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org