commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Maujean" <nmauj...@hotmail.com>
Subject FileUpload : UnknownSizeException on a file of 3Go
Date Tue, 21 Dec 2004 21:22:04 GMT
Hi,

   I am trying to upload a large file of about 3Go when I am doing it I have
an UnknownSizeException. I discovered that it came from the FileUploadBase
class in the method from the method
    public List /* FileItem */ parseRequest(HttpServletRequest req)

from this code :
int requestSize = req.getContentLength();

        if (requestSize == -1)
        {
            throw new UnknownSizeException(
                "the request was rejected because it's size is unknown");
        }

   Is it possible to upload a file of any size ? if yes, why I can't upload
this file of 3Go, why I have an UnknownSizeException ? if no, how I can
bypass it to upload a file of 3Go ?

thank you for your answer,

Nicolas Maujean

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


Mime
View raw message