Run:
  fileUpload
   

Run:
fileDownload
 

 

 
 
 

File Access Demos : File System 

File System Setup Instructions:

In the ojspdemos WEB-INF directory there is a file called fileaccess.properties which contains fileaccess.basedir property with a value "/tmp/fileaccess". On your web server's host machine, please either create this directory or edit the properties file to specify an existing directory. If the host machine is NT, put it on the same drive as your web server. The uploaded files will be written into this directory and downloaded from it.

You may edit the properties file to change the base directory if you wish. Be aware, if you change it to a directory under your web server, that users will be able to upload files which the webserver may then serve.

 
Download Servlet Setup Instructions:

For download you must have the DownloadServlet available in your web server. This is set up for you in the ojspdemos application's web.xml file.