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.

  • 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 Sep 16 at 13:25
up vote 2 down vote accepted

I can't see a way... uploads ultimately get run through FileHelper::sanitizeFileName(), which has a hard-coded list of disallowed characters in a file name (including parenthesis).

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.