The readme-file says:
Edit process.jsp from jspupload/ and setup "directory" and "tmpdirectory"
variables with the correct path:
<% String directory = "c:/uploads"; %>
<% String tmpdirectory = "c:/uploads/tmp"; %>
"directory" is the folder where uploaded files will be stored.
Questions:
- is it the directory on the web-server. I suppose I don't have access the c: disk !
- I tried a relative path: /uploads. I get a crashdump on http://yourserver.com/jspupload/process.jsp (replaced yourserver with mydomain)
Start of dump:
org.apache.jasper.JasperException: /process.jsp(12,0) The value for the useBean class attribute jfileupload.jspupload.FileUploadBean is invalid.
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
...
Can I get some more info on the "Directory" setting ?
Regards,
Mark
Jspupload directoryRe: JSPUpload directory - getRealPathYes, it's the full path to upload folder on your server.
If you don't know how to get it then you can modify the script to use relative path to your web application. To do so, replace: Code: Select all
Code: Select all
|