cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bert Van Kets" <b...@vankets.com>
Subject Re: FileUploadsWithFlow problem
Date Thu, 12 Feb 2004 13:31:43 GMT
It seems that this line is causing the problem in the
FileUploadManagerImpl.java file

String destfilename=this.uploadFolder.getAbsolutePath() + File.separator +
source.getFileName();

The method getFileName() returns the full path instead of just the filename.
I checked the PartOnDisk class and that seems to use the File.getName()
method which "should" return jsut the filename and not just the full path.
:-/

Replacing "source.getFileName()" in the above code with a fixed name make
everything work perfectly. Jipeeeee

I created a durty hack by filtering the filename manually and adding that to
the path and that works perfectly.
I'll do a test with the latest CVS (mine is a fex days old) and see if the
problem is still present.

I'll keep you posted,

Bert



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


Mime
View raw message