You cannot pre-determine the file size in such cases. This happens because
a -1 value is returned at the end of the input data, the size is not
available.

----- Original Message -----
From: "Arul" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 14, 2001 1:37 AM
Subject: Urgent - Upload : OReilly Classes for Uploading files


> Hi
>
> We have the Option of uploading a file from our site.
>
> I use OReilly Classes for Uploading files..In that I had changed the
> DEFAULT_MAX_POSTSIZE as 10 MB..
>
> When an user tries to upload a file greater than 10 MB , it results in
"Page
> cannot be displayed".The Exception is caught but the exception not thrown.
>
> When i tried to read the file size using Request.getContentLength(), it
> resulted in Corrupt form data: premature ending" or "Separation boundary
was
> not specified"
>
> But i am able to read the file size after calling the Oreilly's Upload
code.
>
> Is there any way i can read the File size before sending it to Oreilly's
> upload code..or any other ways
>
> TIA
>
> Regards ,
> -Arul
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to