DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=39316>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39316 ------- Additional Comments From [EMAIL PROTECTED] 2006-04-14 22:56 ------- The code in comment #3 does not make sense. The exception, and the sizeMax value you are referring to, apply to the _request_ size, not the size of a particular uploaded item. So, the exception will be thrown from parseRequest() if the request exceeds sizeMax. In that situation, you will never reach the loop, unless sizeMax is -1, and you will certainly never encounter a situation in which an individual item is larger than the permitted size for the entire request. If you set sizeMax to -1, _everything_ will be uploaded to the server before the loop ever executes. Everything. All of the parts, all of the files, regardless of how large they are. That is what the size exception is designed to protect your app from. Could Struts provide a means of preventing your app from seeing items over a given size? Yes. But it cannot stop those items from being uploaded to your server first, which usually defeats the purpose entirely. To do that requires changes to Commons FileUpload, so that it skips data over a (different) maximum size for a particular item. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]