Rank: Member
Groups: Member
Joined: 7/10/2006(UTC) Posts: 10
|
in dual 4.5 versione jav uploader have the ability to upload hash to check the file integrity on the server ? (the same of activex) |
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 8/3/2003(UTC) Posts: 998
|
Hello, Yes, but MD5 hash generation is not supported. All other are supported. |
|
|
|
|
Rank: Member
Groups: Member
Joined: 7/10/2006(UTC) Posts: 10
|
in the file upload.php in package ImageUploaderNoSetup.zip version 4.5 i read: Code: //Get SHA1 Hash.
//Java version does not support hash uploading. That is why you should make sure that this value
//is actually uploaded.
if (array_key_exists("HashCodeSHA_1", $_POST))
{
$postedSHA1Hash = $_POST ["HashCodeSHA_1"];
//Compute SHA1 hash. Since Image Uploader sends the hash value encoded with Base 64 algorithm
//the result should be also encoded with Base 64.
$actualSHA1Hash = base64_encode(pack("H*",sha1_file($_FILES["SourceFile_1"]['tmp_name'])));
//If the result differs from the uploaded one, the upload should be interpreted as corrupted.
if ($postedSHA1Hash != $actualSHA1Hash)
{
header("HTTP/1.0 400 Bad Request");
return;
}
}
is a mistake ? Edited by user Tuesday, December 18, 2007 3:13:45 AM(UTC)
| Reason: Not specified |
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 8/3/2003(UTC) Posts: 998
|
Hello, Yes, we will update this information. |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.