Thanks for that bit of code mate. It's indeed a lot better.
Any idea on getting a fix on that realPath for converting the relative path
to the real server path??? I have tried loads of things and can't get it to
work. I still have to use the full path in the config.xconf file.

You can set logging for each log file in logkit.xconf. I set them all to
DEBUG and get all I need to know.

To make the code totally perfect, we should add some exception handling in
the flowscript in case the file didn't make it to the server. That would
result in a nullpointer exception.

Bert


----- Original Message ----- 
From: "Mark Lundquist" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Bert Van Kets" <[EMAIL PROTECTED]>
Sent: Thursday, February 12, 2004 7:27 PM
Subject: Re: FileUploadsWithFlow problem



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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to