• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to write the path to linux server when uploading?  RSS feed

 
Jeppe Sommer
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have made a web form to upload images.
When running the upload program on my local computer I use this path and it works:
String UPLOAD_PATH = "c://myFiles/Images.jpg"
When running the uploading program on the web hotel ( a linux server ) I use this path and it doesn�t work:
String UPLOAD_PATH = "/home/the/full/path/Images.jpg"
I got an IO Error while write to file : java.io.FileNotFoundException.
Is it the right way to start with "/home/.." or do I have to tell the program the IP address or what is wrong?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!