On Thu, 30 Dec 2004 20:43:03 +0100, Nicolas Maujean
<[EMAIL PROTECTED]> wrote:
> yes, I know but if we comment this part, is it possible to download a file
> of more than 2,1 Go, for example 6 Go ?

I assume you mean 2.1GB or 6GB. I have no idea. I wouldn't be
surprised if it failed because of some kind of timeout, or running out
of disk space, but I can't think of any reason that FileUpload itself
would fail.

--
Martin Cooper


> thanks for your answer,
> 
> Nicolas Maujean
> 
> ----- Original Message -----
> From: "Martin Cooper" <[EMAIL PROTECTED]>
> To: "Jakarta Commons Users List" <[email protected]>; "Dakota
> Jack" <[EMAIL PROTECTED]>
> Sent: Thursday, December 30, 2004 7:32 PM
> Subject: Re: [fileupload] simple question about the size we can transfer
> 
> > On Thu, 30 Dec 2004 09:21:41 -0800, Dakota Jack <[EMAIL PROTECTED]>
> wrote:
> > > Pardon me!  Your code has a long but I looked at the actual code and
> > > it is an int.  Strange!
> >
> > It's an int because ServletRequest.getContentLength() returns an int. ;-(
> >
> > --
> > Martin Cooper
> >
> >
> > > Jack
> > >
> > > On Thu, 30 Dec 2004 09:20:37 -0800, Dakota Jack <[EMAIL PROTECTED]>
> wrote:
> > > > What are you talking about?  The requestSize is a long and not an int?
> > > >
> > > > Jack
> > > >
> > > >
> > > > On Thu, 30 Dec 2004 14:53:36 +0100, Nicolas Maujean
> > > > <[EMAIL PROTECTED]> wrote:
> > > > > hi,
> > > > >
> > > > >   in FileUploadBase.java, I comment the code which get the size we
> want to
> > > > > transfer :
> > > > >
> > > > > /*
> > > > >         long requestSize = req.getContentLength();
> > > > >
> > > > >         if (requestSize == -1)
> > > > >         {
> > > > >             throw new UnknownSizeException(
> > > > >                 "the request was rejected because it's size is
> unknown");
> > > > >         }
> > > > >
> > > > >         if (sizeMax >= 0 && requestSize > sizeMax)
> > > > >         {
> > > > >             throw new SizeLimitExceededException(
> > > > >                 "the request was rejected because "
> > > > >                 + "it's size exceeds allowed range");
> > > > >         }
> > > > > */
> > > > >
> > > > >   because request.getContentLength return an int
> > > > > so we are limited to 2^31 - 1 =
> > > > > 2147483647 bytes
> > > > >   after I comment this part, is it possible to upload a file larger
> than
> > > > > that size ?
> > > > > Note that the size is used only in this part of the code,
> > > > >
> > > > > thank you for your answer,
> > > > >
> > > > > Nicolas
> > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > ------------------------------
> > > >
> > > > "You can lead a horse to water but you cannot make it float on its
> back."
> > > >
> > > > ~Dakota Jack~
> > > >
> > > > "You can't wake a person who is pretending to be asleep."
> > > >
> > > > ~Native Proverb~
> > > >
> > > > "Each man is good in His sight. It is not necessary for eagles to be
> crows."
> > > >
> > > > ~Hunkesni (Sitting Bull), Hunkpapa Sioux~
> > > >
> > > > -----------------------------------------------
> > > >
> > > > "This message may contain confidential and/or privileged information.
> > > > If you are not the addressee or authorized to receive this for the
> > > > addressee, you must not use, copy, disclose, or take any action based
> > > > on this message or any information herein. If you have received this
> > > > message in error, please advise the sender immediately by reply e-mail
> > > > and delete this message. Thank you for your cooperation."
> > > >
> > >
> > > --
> > > ------------------------------
> > >
> > > "You can lead a horse to water but you cannot make it float on its
> back."
> > >
> > > ~Dakota Jack~
> > >
> > > "You can't wake a person who is pretending to be asleep."
> > >
> > > ~Native Proverb~
> > >
> > > "Each man is good in His sight. It is not necessary for eagles to be
> crows."
> > >
> > > ~Hunkesni (Sitting Bull), Hunkpapa Sioux~
> > >
> > > -----------------------------------------------
> > >
> > > "This message may contain confidential and/or privileged information.
> > > If you are not the addressee or authorized to receive this for the
> > > addressee, you must not use, copy, disclose, or take any action based
> > > on this message or any information herein. If you have received this
> > > message in error, please advise the sender immediately by reply e-mail
> > > and delete this message. Thank you for your cooperation."
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to