I am writing a web application to be run in Unix Server. I wish to save a file from a FTP server to the web server. But this file is to be save temporary in the web server, make same updates and will be deleted after used. As there might be many users downloading the same file but the content of this file might be change differently depending on different users, so usually where is the best location in the web server to store this file separately for different users?
Yes but my concern is which directory in the web server should I temporary stored these files?
Joined: Mar 22, 2005
Any place that's not publicly accessible, e.g. a subdirectory of WEB-INF.
Joined: Aug 29, 2007
Then is there a java command to access the subdirectories in WEB-INF? I tried to use this command: 'getServletContext().getRealPath("/")', is it pointing to the correct location? I am running my web application in Eclipse.
subject: Where to save a file separately for different users in same web server?