You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Geir Ove Skjaervik <ge...@online.no> on 2006/01/20 15:34:49 UTC
MultipartFileUploadApp succeeds uploading file - but not upploaded
Hello,
I have now used days seraching the net for a solution to this problem.
Please help.
I am running Tomcat 5.5 locally on my computer under Windows XP Pro. I
am trying to upload a simple 1 line text file to the server to a
directory called "uploads" located directly under ROOT.
I am uses the Jakarta HTTPClient and the MultipartFileUploadApp example
to do this. The "uploads" directory is not username / password
protected: I have successfully downloaded contents of files from this
directory using a simple Http Connection in a Java program.
MultipartFileUploadApp says the upload succeded, and returns the Server
(Tomcat) response which is simply Html that lists the contents of the
"uploads" directory: It does NOT contain the file I tried to uplad.
Checking the directory in the FIle Explorer confirms the file is not
there.
Is there any settings in Tomcat server.xml or web.xml for the "uploads"
directory that must be set to allow uploads ? If so which?
In your reply, please consider that I am not an expert Tomcat user !
Thanks in advance for all help !
regards
Geir Ove
Norway
RE: MultipartFileUploadApp succeeds uploading file - but not upploaded
Posted by Geir Ove Skjaervik <ge...@online.no>.
Hello,
Thanks a lot for your answer! I am suprprised that HTTPClient then does
not give an error message!
I will take a look at FileUpload!
Thanks again.
Geir Ove
-----Original Message-----
From: Markus Schönhaber [mailto:mailing-tomcat-user@schoenhaber.de]
Sent: 20. januar 2006 17:33
To: Tomcat Users List
Subject: Re: MultipartFileUploadApp succeeds uploading file - but not
upploaded
Geir Ove Skjaervik wrote:
> I am running Tomcat 5.5 locally on my computer under Windows XP Pro. I
> am trying to upload a simple 1 line text file to the server to a
> directory called "uploads" located directly under ROOT.
>
> I am uses the Jakarta HTTPClient and the MultipartFileUploadApp
> example to do this. The "uploads" directory is not username / password
> protected: I have successfully downloaded contents of files from this
> directory using a simple Http Connection in a Java program.
>
> MultipartFileUploadApp says the upload succeded, and returns the
> Server
> (Tomcat) response which is simply Html that lists the contents of the
> "uploads" directory: It does NOT contain the file I tried to uplad.
> Checking the directory in the FIle Explorer confirms the file is not
> there.
To make uploads work you'll have to provide the appropriate
functionality on
the server side - for example create a servlet that handles the upload.
You
might want take a look at http://jakarta.apache.org/commons/fileupload/
Regards
mks
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: MultipartFileUploadApp succeeds uploading file - but not upploaded
Posted by Markus Schönhaber <ma...@schoenhaber.de>.
Geir Ove Skjaervik wrote:
> I am running Tomcat 5.5 locally on my computer under Windows XP Pro. I
> am trying to upload a simple 1 line text file to the server to a
> directory called "uploads" located directly under ROOT.
>
> I am uses the Jakarta HTTPClient and the MultipartFileUploadApp example
> to do this. The "uploads" directory is not username / password
> protected: I have successfully downloaded contents of files from this
> directory using a simple Http Connection in a Java program.
>
> MultipartFileUploadApp says the upload succeded, and returns the Server
> (Tomcat) response which is simply Html that lists the contents of the
> "uploads" directory: It does NOT contain the file I tried to uplad.
> Checking the directory in the FIle Explorer confirms the file is not
> there.
To make uploads work you'll have to provide the appropriate functionality on
the server side - for example create a servlet that handles the upload. You
might want take a look at
http://jakarta.apache.org/commons/fileupload/
Regards
mks
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org