Gautam Batra wrote:
>
> Hi all !
>
> I am uploading a file using oreilly's package. Before uploading I
> would like to confirm that no such file already exists in the given
> directory. When I simply do
> String clientfilepath=request.getParameter("uploadfile"), i get null.
> It is only after the enumeration is done do I get the file name.
>
> Is there anyway to do this ?

Not directly without changing the MultipartRequest class to be extremely
complicated.  The best thing to do is use a temp dir to save the files,
then after upload you can move them to the proper directory and be smart
about overwriting.

> In addition I am using Jrun 2.3.2 and IIS 4.0 on an NT 4.0 server.

Thanks, it's refreshing to see people include full info.  :-)

-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

Reply via email to