You're going to have to modify Geoff's upload action. Take a look at the action I posted, it will recursively generate all the directories on the path. You can copy/paste into Geoff's code.
I don't know what var he uses to get the upload dir name...but do something like this:
// Create the upload folder(s) if need be
File folder = new File(uploadFolder);
if (!folder.exists()) {
folder.mkdirs();
}
HTH Steve
Hello,
the file upload action I found on this list (contributed by Geoff) works actually fine, but there is one thing that I would like to do: I would like to create the upload directory dynamically.. At the moment, a file is uploaded correctly to a directory only if this directory already exists. Is it possible to create the upload directory at run-time, e.g. a directory whose name depends on parameter given (e.g. the logged-in user-id)?
Regards
Jan
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
From Beethoven to the Rolling Stones, your favorite music is always playingon MSN Radio Plus. No ads, no talk. Trial month FREE! http://join.msn.com/?page=offers/premiumradio
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
