Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
12print.it  
#1 Posted : Tuesday, June 19, 2007 6:56:22 AM(UTC)
12print.it

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)
Alex Makhov  
#2 Posted : Tuesday, June 19, 2007 9:02:34 PM(UTC)
Alex Makhov

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.
Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
12print.it  
#3 Posted : Thursday, June 21, 2007 7:37:16 PM(UTC)
12print.it

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

Alex Makhov  
#4 Posted : Monday, July 2, 2007 1:00:38 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups: Member
Joined: 8/3/2003(UTC)
Posts: 998

Hello,

Yes, we will update this information.
Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
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.