Page 1 of 1

How do I get resume to use checksum before filesize?

Posted: Mon Sep 13, 2010 2:28 pm
by lillereven
Hi!

I am currently testing jFileUpload for a project where I need to handle binary files in excess of 2GB. HTTP PUT works fine, and I extended the PHP script to give me the MD5 checksum for the file object on the server.

Due to the filesize and transfer times required for these, I would like to use MD5 checksum for error detection and of course avoid duplicate uploads whenever possible.

So here is my question: How can I tell the resume function to give priority to the checksum rather than filesize? Right now (v2.6) if filesizes match the checksums are ignored. Any solution?


With best regards,
Martin

Re: How do I get resume to use checksum before filesize?

Posted: Tue Sep 14, 2010 6:59 pm
by support
In applet:
<PARAM NAME="resume" VALUE="md5">

Is MD5 implemented in the PHP script you have?

Re: How do I get resume to use checksum before filesize?

Posted: Wed Sep 15, 2010 11:57 am
by lillereven
support wrote:In applet:
<PARAM NAME="resume" VALUE="md5">

Is MD5 implemented in the PHP script you have?
I have the <param> and implemented MD5 in my script. Looking at network traces I see the HTTP HEAD with parameter "checksum: md5". My script replies with HTTP status 200 and checksum: somehexstring.

If checksums don't match but the filesizes do, the applet does not perform an overwrite. Is that intended?


With best regards,
Martin

Re: How do I get resume to use checksum before filesize?

Posted: Wed Sep 15, 2010 8:39 pm
by support
If MD5 matches it tries to resume. If not then it should overwrite if you setup:
<PARAM NAME="overwrite" VALUE="true">