This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes File Upload Path Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "File Upload Path Problem" Watch "File Upload Path Problem" New topic
Author

File Upload Path Problem

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
MultipartRequest multi = new MultipartRequest(req,getServletContext().getRealPath("/UploadedPics/"));

1) It works fine on my labtop

2) My dedicated server is using Apache and Tomcat with mod_jk connectors. When am uploading to my website then it throws error
IllegalArgumentException: Not a directory: /opt/apache-tomcat-5.5.23/webapps/mywebsite/UploadedPics

I created the directory and file uploaded but How will I access this link from my servlet http://www.mywebsite.com/UploadedPics

Thanks & best regards
[ May 07, 2008: Message edited by: Farakh khan ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: File Upload Path Problem
 
Similar Threads
MultipartRequest syntax question
Got Tomcat/Apache merged, but...
Upload File Error
how we are able to use URL www.javaranch.com/books.jsp
Apache-Tomcat Connection