So if your .properties are OK, then it's a problem with the server-side script (i.e. process.php + explorer.php). If you look at the online demo, does it prompt for resume/overwrite?
http://www.jfileupload.com/products/dem ... nload.html
Here is how it works basically:
- If the file you want to download does not already exist on local folder, applet download files directly.
- If the file you want to download does already exist on local folder, then applet sends an HTTP HEAD request to know remote file size. Then depending on response that includes filesize applet knows if it should prompt either resume or overwrite.
If you're using MD5 for resume, then it will compare local/remote MD5 too.
Here are the HTTP traces you can get by enabling:
<PARAM NAME="verbosemode" VALUE="debug">
[DEBUG] header - >> "
HEAD /products/demo/process.php HTTP/1.1[\r][\n]"
[DEBUG] HttpMethodBase - Adding Host request header
[DEBUG] header - >> "Range: bytes=0-156931[\r][\n]"
[DEBUG] header - >> "filename: /samplefile200901.jpg[\r][\n]"
[DEBUG] header - >> "checksum: md5[\r][\n]"
[DEBUG] header - >> "relativefilename: /samplefile200901.jpg[\r][\n]"
[DEBUG] header - >> "User-Agent: JFileUpload[\r][\n]"
[DEBUG] header - >> "Host:
www.jfileupload.com[\r][\n]"
[DEBUG] header - >> "[\r][\n]"
[DEBUG] header - << "HTTP/1.1 200 OK[\r][\n]"
[DEBUG] header - << "HTTP/1.1 200 OK[\r][\n]"
[DEBUG] header - << "Date: Tue, 25 Sep 2012 19:43:53 GMT[\r][\n]"
[DEBUG] header - << "Server: Apache[\r][\n]"
[DEBUG] header - << "X-Powered-By: PHP/5.2.17[\r][\n]"
[DEBUG] header - << "Connection: close[\r][\n]"
[DEBUG] header - << "size: 156931[\r][\n]"
[DEBUG] header - << "checksum: 782bea7295d8a477c42a9c2e5bf8b9a0[\r][\n]"
[DEBUG] header - << "Vary: Accept-Encoding,User-Agent[\r][\n]"
[DEBUG] header - << "Content-Type: text/html; charset=UTF-8[\r][\n]"
[DEBUG] header - << "[\r][\n]"
[DEBUG] HttpMethodBase - Should close connection in response to directive: close
[DEBUG] HttpConnection - Connection is locked. Call to releaseConnection() ignored.
[DEBUG] HttpConnection - Releasing connection back to connection manager.
[INFO] G - Head Status code = 200
[DEBUG] HTTPDownloadTransfer - localfolder:C:\Users\Documents
[DEBUG] HTTPDownloadTransfer - account:C:\Users\Documents
[DEBUG] HTTPDownloadTransfer - relativefilename:true
[INFO] HTTPDownloadTransfer - Download (POST) started : /samplefile200901.jpg
[DEBUG] HttpConnection - Open connection to
www.jfileupload.com:80
network: Connexion de
http://www.jfileupload.com:80/ avec proxy=DIRECT
[DEBUG] header - >> "POST /products/demo/process.php HTTP/1.1[\r][\n]"
[DEBUG] HttpMethodBase - Adding Host request header
[DEBUG] header - >> "filesystem: jfileupload.download.http.HTTPDownloadTransfer[\r][\n]"
[DEBUG] header - >> "localfolder: C:\Users\Documents[\r][\n]"
[DEBUG] header - >> "account: C:\Users\Documents[\r][\n]"
[DEBUG] header - >> "relativefilename: true[\r][\n]"
[DEBUG] header - >> "User-Agent: JFileUpload[\r][\n]"
[DEBUG] header - >> "Host:
www.jfileupload.com[\r][\n]"
[DEBUG] header - >> "Content-Length: 41[\r][\n]"
[DEBUG] header - >> "Content-Type: application/x-www-form-urlencoded[\r][\n]"
[DEBUG] header - >> "[\r][\n]"
[DEBUG] EntityEnclosingMethod - Request body sent
[DEBUG] header - << "HTTP/1.1 200 OK[\r][\n]"
[DEBUG] header - << "HTTP/1.1 200 OK[\r][\n]"
[DEBUG] header - << "Date: Tue, 25 Sep 2012 19:44:01 GMT[\r][\n]"
[DEBUG] header - << "Server: Apache[\r][\n]"
[DEBUG] header - << "X-Powered-By: PHP/5.2.17[\r][\n]"
[DEBUG] header - << "Connection: close[\r][\n]"
[DEBUG] header - << "Content-Length: 156931[\r][\n]"
[DEBUG] header - << "Vary: Accept-Encoding,User-Agent[\r][\n]"
[DEBUG] header - << "Content-Type: text/html; charset=UTF-8[\r][\n]"
[DEBUG] header - << "[\r][\n]"
[INFO] HTTPDownloadTransfer - Status code = 200
[DEBUG] HttpMethodBase - Should close connection in response to directive: close
[DEBUG] HttpConnection - Releasing connection back to connection manager.
[INFO] HTTPDownloadTransfer - Download completed