On Feb 16, 2004, at 5:03 AM, Bert Van Kets wrote:
Hmmm... well, it looks like if you use a relative path there, it's relative to the working directory of the process that started the servlet container. I'm using Jetty on Unix, so YMMV. Anyway, I do this:
<upload_manager> <uploadfolder>site/WEB-INF/work/upload</uploadfolder> </upload_manager>
Apparently Windows has a different behavior and needs the full path. :-(
You might try putting something like
(new File (destination)).getAbsolutePath()
into a debug log message, and find out how Winblows is interpreting the relative path?
~ml
Guys -
I don't have time at the moment to look into this further, but a lot of this is handled well in a cross platform way using the Source and SourceResolver interfaces. For hints on its usage, try looking at the SourceCopyAction. The source resolver itself is an avalon component and so can be looked up using its ROLE.
By the way, if you are able to switch to 2.1.4 now that it's out, the new method setDisposeWithRequest may simplify this greatly if you have simple needs (all uploads go to one directory configured in web.xml).
HTH, Geoff
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
