> The MultiPartRequest requires that we have a saveDirectory when we
> instantiate it, but the directory path would be passed in after the
> user logged in. Is there any way to use the getParameter("directory")
> method before creating the MultiPartRequest?
>
> Any suggestions would be greatly appreciated.
This has become a FAQ. MultipartRequest doesn't allow for incremental
reads which would be required for this functionality. The simple
workaround is to save the files to a temp dir, then rename the temp dir
after the upload.
I'm not worried about changing the class to support incremental reads
since there's nothing in the RFC that lets you indicate the filename
should come before the files in the upload stream, so this "workaround"
is really the best way to go.
Have fun,
-jh-
--
Jason Hunter
[EMAIL PROTECTED]
Book: http://www.servlets.com/book
Article: http://www.javaworld.com/jw-12-1998/jw-12-servletapi.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html