This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Upload File Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Upload File Error" Watch "Upload File Error" New topic
Author

Upload File Error

amol amlya
Greenhorn

Joined: Mar 16, 2005
Posts: 1
Hi,

I am using Jason Hunter's MultipartRequest class to upload a file via a servlet for my student project. I am using tomcat. I have an images directory in Webapps/ROOT where I want to upload my file. I specified "./images/" in the multipartrequest constructor and it worked on windows and the file got uploaded correctly. Now, I've ported everything into linux (with the same directory structure and same code). But it now gives an illegal argument exception saying that ./images/ is not a directory. Is there a different naming convention for apache tomcat on unix/linux for directories inside the server root?

Please help. I hate to go back to windows again.

Regards,
Amol
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Post some code snippet.
Where is your image directory? is it <context path>/images?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Upload File Error
 
Similar Threads
MultipartRequest syntax question
Uploading multiple files
Help in Multipart Request Urgent
MultipartRequest class
File Upload Problem(Database and Dirctory)