cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lundquist ...@wrinkledog.com>
Subject Re: FileUploadsWithFlow problem
Date Thu, 12 Feb 2004 18:27:47 GMT

On Feb 12, 2004, at 5:31 AM, Bert Van Kets wrote:

> It seems that this line is causing the problem in the
> FileUploadManagerImpl.java file
>
> String destfilename=this.uploadFolder.getAbsolutePath() + 
> File.separator +
> source.getFileName();

Bert, thanks for figuring this out!

Here's the fix — change that line in the original code to this:

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

This does the same as your hack, just cleaner.

Thanks again!

BTW, were you ever able to view the logger messages for this thing?  If 
so, how did you do it?

~ml


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


Mime
View raw message