---
title: "Restrictions.FileMask Property  ActiveX/Java Uploader PHP"
canonical: https://www.aurigma.com/docs/us8/JA_P_P_Restrictions_FileMask.htm
product: "Upload Suite 8"
---

# Restrictions.FileMask 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 a file mask for the files which are allowed to be uploaded.

## Syntax
 
```
public function getFileMask() {
}

public function setFileMask($value) {
}
```
 
### Property Value
 
Type: **string**
 
The file mask for the files allowed to be uploaded. You can use the standard wildcards such as asterisk `*` (arbitrary substring) and question mark `?` (arbitrary character). To specify several masks, separate them by semicolons, e.g. `*.jpg;*.jpeg;*.jpe.` To display all possible files, use `*.*`.
 
Default value is **"\*.\*"**.

## See Also
 
### Reference
 
- [FileNameNotAllowed Property](https://www.aurigma.com/docs/us8/JA_P_P_Messages_FileNameNotAllowed.htm.md)
- [Aurigma.ImageUploader.Restrictions.FileMask ASP.NET PropertyActiveX/Java Uploader](https://www.aurigma.com/docs/us8/JA_P_Aurigma_ImageUploader_Restrictions_FileMask.htm.md)
- [$au.restrictions.fileMask JavaScript PropertyActiveX/Java Uploader](https://www.aurigma.com/docs/us8/JA_P_J_$au_restrictions_fileMask.htm.md)

### Manual
 
- [Filtering Files by Names and Types](https://www.aurigma.com/docs/us8/filtering-files-by-name-and-type.htm.md)
