The "int -> long" issue likely lives in many parts of the code, and in some third party libs as well. What is "-ve"?
Have you considered creating a signed applet that acts as an "upload manager" on the client side. Many of the video-sharing websites use these for large files. Google has one, that runs as an executeable .jar file. Get it from video.google.com to see how it works. If you wrote your own "uploader" you wouldn't have to worry about browser issues. One consideration relating to your browser worry is that the "Content-Length" field shouldn't be trusted from the web browser. The reason being, if the HTTP stream doesn't close after the Content-Length has been read, the server could get a buffer overflow. This is a security concern.... and again, why Content-Length shouldn't be trusted. At the same time, you might question the need to upload 2GB+ of data via HTTP. HTTP is a very inefficient way to do this. FTP is much better, and faster, and designed for moving large amounts of data. good luck, Jason PSI wrote: > > Yeah i did modified the file to use "long" instead!, but as i said later > thread, i think it is browser issue, it some how sets content-length to > -ve and then this error ! > > thanks > PSI > > thrasher wrote: >> >> I wonder in the AppFuse code, or your code, uses an "int" to count the >> number of bytes? 2^32 = 4GB, unsigned. Signed it would be 2GB. Since >> int is "signed" in Java, could you be going "negative" in length? Use a >> long to get around it, if this is the problem. >> >> -Jason >> >> >> >> >> PSI wrote: >>> >>> Hi >>> >>> I am using appfuse 1.9.4, and the requirement is that i need to upload >>> file of size @2.5 GB, everything works if file is 1.99GB but anything >>> greater than 2 GB throws weird exception!. >>> >>> following is the setting in struts controller: >>> <controller nocache="true" inputForward="true" maxFileSize="2.5GB"/> >>> >>> Any idea why this is happening? >>> >>> Thanks, >>> PSI >>> >> >> > > -- View this message in context: http://www.nabble.com/fileupload-Size-greater-than-2-GB---tf3538287s2369.html#a9880102 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]