Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Finding path of a file

 
Mahesh Lohi
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The javadoc of getRealPath mentions a condition under which the method returns null; does that apply to your situation?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic