tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: FileUploadBase$IOFileUploadException
Date Wed, 01 Sep 2010 22:52:45 GMT
2010/9/2 Paul Szynol <pjs38@columbia.edu>:
>
> Hey, Konstantin,
>
> The file system allows me to write the bigger image if I just increase the
> threshold size, though, so the file system is allowing the larger images.
>  That suggests to me that the exception is being thrown solely when the
> image size exceeds the threshold size value.  I read the exception to mean
> something like "I can't write this tmp file because it is bigger than the
> threshold size value", rather than "I can't write this tmp file because the
> file system won't let me".
>

http://commons.apache.org/fileupload/apidocs/org/apache/commons/fileupload/disk/DiskFileItemFactory.html#setSizeThreshold%28int%29

I understand that if you use setSizeThreshold() to increase the
threshold value, the file is not written to disk:

>>>> On 9/1/2010 5:28 PM, Paul Szynol wrote:
>>>>>
>>>>> Increasing the value of .setSizeThreshold() did the trick.  Thanks for
>>>>> pointing me in that direction--I should have sent my question here
>>>>> about
>>>>> 12 hrs ago! :)
>>>>

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message