** Getting Resume Upload to WORK

Upload core product.
Post Reply
amrish_deep
Posts: 40
Joined: Tue Jun 17, 2008 5:14 am

** Getting Resume Upload to WORK

Post by amrish_deep »

Hi,
I am currently evaluating the resume functionality of the JFileUpload. But unfortunately I am not able to get it to work. The following are the details of my current settings. Please help me out to get the resume upload up and working.

* We have a Software Distribution website on IIS for which we are looking for a resume functionality.
* The Server side script which I use in "process.aspx" mentioned in your add-on portal "http://www.jfileupload.com/products/tools/index.html"
* For a continous upload, while debugging in VS 2005, once the progress bar reaches 100%, I am able to get the debugger hit the page_load of the process.aspx.cs page. Then I can visually see the file being saved to the mentioned folder.
* Now for testing the resume functioanlity, I added the following to the "applet_http.js"
document.writeln('<PARAM NAME="resume" VALUE="true">');
* Now the difference is that, when the file is selected to upload, the debugger hits the Page_Load of the Process.aspx and "filename" is passed in the Request header to check if a partially uploaded file exists in the file upload respository. Kudos! till now everything works great and as expected.
* Now the confusion starts once I click on the cancel button.
* 30MB of the file (total file size ~ 90MB) is uploaded and on clicking cancel, the debugger again hits the page_load of the process.aspx page. What I was expecting is that the partially uploaded file of 30MB should be saved onto the file upload respository. But it was not happening.
* So the next time if the file upload needs to be resumed, in the Request header using the "filename" parameter we need to check the part file for which the partially uploaded file of 30MB needs should have been to the upload_dir the previous time when the upload was interrupted right?
* So I need to know as to how I can save the partially uploaded/cancelled file onto the upload_dir from the process.aspx
** I hope that I am clear, Please help me out of this issue and correct me if I am wrong on my understanding of how JFileUpload works to resume an upload using process.aspx.
* I feel that the quality of the documentation can be improved. Hopefully the issue is resolved as resume upload feature from JFileUpload would certainly revolutionize the uploads happening through our portal. Great product!!

Thanks

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: ** Getting Resume Upload to WORK

Post by support »

Yes, your explanation is clear. You have the same problem we've noticed under our ASP.NET/IIS server. Uncomplete file upload is not available for the ASP.NET script. IIS or ASP.NET seems to drop all uncompleted POST multipart upload. There might be a parameter to allow it but we didn't find it.

However, we found a workaround. It works fine for HTTP PUT upload.
Add the following parameter in applet_http_aspx.js to enable it:
<PARAM NAME="param5" VALUE="httpmethod">
<PARAM NAME="value5" VALUE="put">

You also need to allow HTTP PUT support on IIS:
- Open IIS console : Control panel -> Administration tools -> IIS
- Open your web site properties: Web sites -> Your web site -> Mouse right click -> Properties
- Add PUT verb for .aspx: Mapping tab -> .aspx line -> Modify -> Add PUT to the list of verb
- Apply modifications.

Post Reply