Re: is there an absolute max file upload size? - my findings

2009-10-05 Thread Jim the Standing Bear
thanks for the response Stephen, and you are right on the spot. After some experiments, here is what I found out about the peculiarity of file upload: 1. the servlet spec indeed defines a 32-bit value for maximum file sizes, however, myfaces seems to interpret it as an unsigned 32-bit, so for max

Re: is there an absolute max file upload size?

2009-10-02 Thread Stephen Connolly
Be aware that the servlet spec defines the filesize as an signed 32 bit*, so that unless code is written correctly, there will always be a hard limit of 2GB on upload with size information in advance... since one DOS attack is to upload a file of unlimited size (thereby filling your storage) most g

Re: is there an absolute max file upload size?

2009-10-02 Thread Jim the Standing Bear
thank you for the response, Anuj. However, I am not entirely certain if this property applies. For one thing, I am only using tomahawk, not trinidad, and also I was able to upload files in hundred-megabyte range, just not in GB, so if this property was the cause, I wouldn't even be able to get th

RE: is there an absolute max file upload size?

2009-10-02 Thread Patel, Anuj
Hey Jim, There is a property org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE that you need to specify in your web.xml. This is the max allowable disk space for your file. If you go beyond that, it will throw an exception from its filter. The default is 512 (5000 KB). Anuj Patel Software E