aspose file tools*
The moose likes Servlets and the fly likes Finding path of a file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Finding path of a file" Watch "Finding path of a file" New topic
Author

Finding path of a file

Mahesh Lohi
Ranch Hand

Joined: Jun 22, 2009
Posts: 150
Hi all,

I am uploaded my web application on to the linux server. In my clsaa file I have used


so that the user uploaded files are save in the upload directory. This works fine in my local system. However, I am getting an error in the server stating
I think it is not taking the path of the "upload" directory. Please let me know what I should do to correct it

Thank you in advance
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
The javadoc of getRealPath mentions a condition under which the method returns null; does that apply to your situation?


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Finding path of a file
 
Similar Threads
save a file using jspsmartupload
How to give a path name in web.xml
File Upload using Struts
Commons FileUpload
Upload File Error