The moose likes Servlets and the fly likes How to write the path to linux server when uploading? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "How to write the path to linux server when uploading?" Watch "How to write the path to linux server when uploading?" New topic
Author

How to write the path to linux server when uploading?

Jeppe Sommer
Ranch Hand

Joined: Jan 07, 2004
Posts: 263
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?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to write the path to linux server when uploading?
 
Similar Threads
Uploading a file from localhost in windows to sever runnig in Linux
which FTP server to use to upload files
Problem in viewing uploaded images
Upload using HTTP Protocol
User upload files in to a cluster application