struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michał Letyński <>
Subject Re: FileUpload problem for empty files.
Date Thu, 03 Jan 2008 13:40:32 GMT
I found that there is a Treshold parameter, here is short info:
"Sets the size threshold beyond which files are written directly to disk."

/This paramater is set to 0. So my attachment is not written to disk but 
is keeped in memory. In struts 1 this parameters was set to 262144.
But my problem still exist (i found that in struts 1 we have the same 
problem). How to recognize empty file from not existing file. When i put 
not existing file for e.g
C:\temp.txt - the file have path, name and bytes[] with length0 so the 
same as my empty file which exists ! Any ideas how to solve the problem ?

Michał Letyński pisze:
> Hi.
> Im using struts 2 s:file tag for uploading files. But it does not work 
> for empty files -> 0bytes. Temp file is not created in tomcat tmp 
> directory. Why ? Is it a struts bug ?
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message