Fix upload to hash will cause 'sha-1 doesn't match'