"Seong Y. Kim" wrote:
> Hi, all.
>
> I have read the book, JAVA Servlet Programming from O'reilly, specifically
> about uploading files. I could understand how, but could not see how I can
> save uploaded files to the diskette. Can anyone tell me how to save uploaded
> files?
>
> Any kind of information will be appreciated.
> Thanks.
>
On which machine is the diskette drive you want to save to? I think you might
have the directions "upload" versus "download" confused. In the context of
servlets, "upload" means copying the file from your local PC, through your web
browser, to the server system where the servlets are running. (Could be the
same physical machine, but that's not the usual case.)
What the server does with the file depends totally on how you write the servlet
that receives it. If you want to save it on a diskette drive connected to the
server, make your upload servlet write to a file whose name is on that diskette
-- just like you would from any other program (the name depends on what OS you
are running, and where the diskette drive is mounted if it is a Unix system).
If you want to save the file on your PCs diskette, then you don't need to upload
at all -- the file is already on your system, so just use the normal tools.
>
> --
> *** Seong Y. Kim (Software Engineer)
Craig McClanahan
___________________________________________________________________________
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