---
title: "Metadata.Hash Property  ActiveX/Java Uploader PHP"
canonical: https://www.aurigma.com/docs/us8/JA_P_P_Metadata_Hash.htm
product: "Upload Suite 8"
---

# Metadata.Hash Property ActiveX/Java Uploader PHP

Supported browsers: ![Internet Explorer](https://www.aurigma.com/docs/us8/icons/ie8.png)![Firefox](https://www.aurigma.com/docs/us8/icons/firefox.png)![Google Chrome](https://www.aurigma.com/docs/us8/icons/chrome.png)![Safari](https://www.aurigma.com/docs/us8/icons/safari.png)
 
Gets or sets an algorithm to generate a hash value for each user-selected file.

## Syntax
 
```
public function getHash() {
}

public function setHash($value) {
}
```
 
### Property Value
 
Type: **string**
 
The algorithm to generate a hash value for each user-selected file.
 
Possible values are listed in the table below.
 
| Value | Description |
| --- | --- |
| **SHA** | SHA hash algorithm. |
| **MD2** | MD2 hash algorithm. |
| **MD5** | MD5 hash algorithm. |
 
You can specify several hash algorithms separated by semicolon.
 
Default value is **""**.

## Remarks
 
**Note** 
ActiveX/Java Uploader Express does not upload hash sums. See the [Upload Suite Editions](https://www.aurigma.com/docs/us8/upload-suite-editions.htm.md) topic for details.
 
The hash is calculated only for the original file, not for converted files (even if the original file is not uploaded).
 
To get an uploaded hash sum at the server, use the [Package.PackageFields](https://www.aurigma.com/docs/us8/JA_P_P_Package_PackageFields.htm.md) collection. Here this value can be retrieved by a key named in the following way: `HashCodeXXX_N`, where *XXX* is a string value specified in this property (hash algorithm), and *N* is the index of the file in the request. E.g. if the property value is `MD5;SHA`, the **PackageFields** collection will contain the following keys:
 
- `HashCodeMD5_1`, `HashCodeMD5_2`, etc.
- `HashCodeSHA_1`, `HashCodeSHA_2`, etc.

**Note** 
Hash calculation is quite resource-intensive operation. That is why if you do not need to verify uploaded files on the server, it makes sense to disable this feature to make ActiveX/Java Uploader faster. To do it, just specify empty string in this property.

## See Also
 
### Reference
 
- [Aurigma.ImageUploader.Metadata.Hash ASP.NET PropertyActiveX/Java Uploader](https://www.aurigma.com/docs/us8/JA_P_Aurigma_ImageUploader_Metadata_Hash.htm.md)
- [$au.metadata.hash JavaScript PropertyActiveX/Java Uploader](https://www.aurigma.com/docs/us8/JA_P_J_$au_metadata_hash.htm.md)
