---
title: "messages.fileNameNotAllowed Property  HTML5/Flash Uploader JavaScript"
canonical: https://www.aurigma.com/docs/us8/FH_P_J_$au_messages_fileNameNotAllowed.htm
product: "Upload Suite 8"
---

# messages.fileNameNotAllowed Property HTML5/Flash Uploader JavaScript

Supported technologies: ![Adobe Flash](https://www.aurigma.com/docs/us8/icons/flash.png)![HTML 5](https://www.aurigma.com/docs/us8/icons/html5.png)
 
Gets or sets a message which states that a user tries to select a file, the name of which is not allowed.

## Syntax
 
```
$au.imageUploaderFlash({
    messages: {
        //...other params...
        fileNameNotAllowed: "The file '{0}' cannot be added. The website doesn't accept files of this type.",
        //...other params...
    }
})
```

```
$au.imageUploaderFlash('uploaderID').messages().fileNameNotAllowed(value);
value = $au.imageUploaderFlash('uploaderID').messages().fileNameNotAllowed();
```
 
### Property Value
 
Type: **String**
 
The message which states that a user tries to select a file the name of which is not allowed (the file name does not match [fileMask](https://www.aurigma.com/docs/us8/FH_P_J_$au_restrictions_fileMask.htm.md)). It can contain the following placeholder:
 
- *[name]*
    - replaced by the name of the file which cannot be added.

Default value is **"The file '{0}' cannot be added. The website doesn't accept files of this type."**.

## Remarks
 
This property is necessary for localization of HTML5/Flash Uploader.

## See Also
 
### Reference
 
- [fileMask Property](https://www.aurigma.com/docs/us8/FH_P_J_$au_restrictions_fileMask.htm.md)
- [Aurigma.ImageUploaderFlash.Messages.FileNameNotAllowed ASP.NET Property HTML5/Flash Uploader](https://www.aurigma.com/docs/us8/FH_P_Aurigma_ImageUploaderFlash_Messages_FileNameNotAllowed.htm.md)
- [Messages.FileNameNotAllowed PHP Property HTML5/Flash Uploader](https://www.aurigma.com/docs/us8/FH_P_P_Messages_FileNameNotAllowed.htm.md)
