<p>I can't see a way... uploads ultimately get run through <a href="https://github.com/craftcms/cms/blob/develop/src/helpers/FileHelper.php#L124" rel="nofollow noreferrer">FileHelper::sanitizeFileName()</a>, which has a hard-coded list of disallowed characters in a file name (including parenthesis).</p>

<p><a href="https://github.com/craftcms/cms/blob/develop/src/helpers/FileHelper.php#L128-L166" rel="nofollow noreferrer">https://github.com/craftcms/cms/blob/develop/src/helpers/FileHelper.php#L128-L166</a></p>

CC BY-SA 4.0
2018-09-14T20:43:56.683Z
2018-09-14T20:43:56.683Z
Brad Bell
<p>Is there any way to allow () in asset file names (ex. file(1).txt)? Craft strips it out when it saves. The only way I've found is to change it via ftp and update asset indexes. </p>

<p>I've set convertFilenamesToAscii => false but that didn't help. </p>

CC BY-SA 4.0
2018-09-16T13:25:07.363Z
I know it doesn't answer your question, but I'd recommend from personal experience staying with sanitized, non-utf8 filenames. UTF8 filesystem is a slippery slope to go down even if your server permits it...
Urs
<assets>
Craft strips out parenthesis in file names.
# Craft strips out parenthesis in file names.

(Asked by: username_0 on 2018-09-14)

Is there any way to allow () in asset file names (ex. file(1).txt)? Craft strips it out when it saves. The only way I've found is to change it via ftp and update asset indexes.

I've set convertFilenamesToAscii => false but that didn't help.

**Tags:** assets

> **Comments:**
> **username_1**: I know it doesn't answer your question, but I'd recommend from personal experience staying with sanitized, non-utf8 filenames. UTF8 filesystem is a slippery slope to go down even if your server permits it...  

---

## 1 answers

### Answer by username_2 on 2018-09-14. Score: 2 | Accepted answer

I can't see a way... uploads ultimately get run through [FileHelper::sanitizeFileName()](https://github.com/craftcms/cms/blob/develop/src/helpers/FileHelper.php#L124), which has a hard-coded list of disallowed characters in a file name (including parenthesis).

<https://github.com/craftcms/cms/blob/develop/src/helpers/FileHelper.php#L128-L166>


---

