commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Leland <>
Subject Re: Recent change to FileUpload's DefaultFileItem
Date Wed, 30 Apr 2003 16:13:48 GMT
Martin Cooper wrote:
> On Wed, 30 Apr 2003, Howard M. Lewis Ship wrote:
>>Tapestry uses the DefaultFileItem.getStoreLocation() method, which has been
> That method was not removed - it is still there, with the same signature -
> so there must be something else that's causing a breakage.

It was removed from the FileItem. We normally transfer 100MB to 500 MB 
files. Making copies of files that already exist on a disk is slow and 
can add more than a minute to the transfer time which was only 4 minutes 
to start with. The getStoreLocation() allowed a fast rename() to take place.

Previously we depended on if getStoreLocation() returned a null then we 
had to do stream copy for the smaller files. We were also running with a 
modified version of Struts to expose the getStoreLocation() to the 
application. I had planned to make this small change in Struts 1.2 but 
now this won't work. From a standard Struts distribution, there needs to 
be a way to access the File or path to a file, from the Struts upload 


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

View raw message