<p>Currently, no. The list you see there is the result of a function in <code>IOHelper</code> called <code>getFileKinds</code>. It just hands out an array of options. While I don't have a recommendation for making this work, I do suggest you send a feature request to: support@buildwithcraft.com</p>

<p>With it already being a function, I can see there being a possibility of them allowing users to add custom restricted extension options via a config setting.</p>

CC BY-SA 4.0
2021-10-27T22:18:34.830Z
As of 2021, this answer is incorrect - there is a way via [extraFileKinds](https://craftcms.com/docs/3.x/config/config-settings.html#extrafilekinds) config option.
Augustine Calvino
CC BY-SA 3.0
2014-07-28T12:13:54.073Z
2014-07-28T12:13:54.073Z
Bryan Redeagle
<p>You can now set <code>allowedFileExtensions</code> and <code>extraAllowedFileExtensions</code> in your config file. The first will re-define the list of allowed files, where the latter will allow you to add additional file types.</p>

<p>For example, I needed to add 3 additional formats:</p>

<pre><code>'extraAllowedFileExtensions' =&gt; 'bim, dwg, rvt'
</code></pre>

<p>See the <a href="https://craftcms.com/docs/config-settings#allowedFileExtensions" rel="noreferrer">documentation here</a> for details.</p>

CC BY-SA 3.0
2017-02-17T12:34:04.980Z
2017-07-11T13:25:04.337Z
2017-07-11T13:25:04.337Z
Alexander Holsgrove
<p>The <code>allowedFileExtensions</code> and <code>extraAllowedFileExtensions</code> config options change what file types are actually allowed to be uploaded at all.</p>
<p>To actually give more options under 'Restrict allowed file types' on an assets field, use the <a href="https://craftcms.com/docs/3.x/config/config-settings.html#extrafilekinds" rel="nofollow noreferrer">extraFileKinds</a> config option.</p>

CC BY-SA 4.0
2021-10-27T22:21:51.443Z
2021-10-27T22:21:51.443Z
Augustine Calvino
<p>I am wondering what would be the best approach to add another file type to the 'Restrict allowed file types' asset field settings?</p>

<p>For our website specification we need to have .zip files and .pdf files only for this field, however I can only restrict to .pdf.</p>

<assets><fieldtypes><field>
How to add more options to the 'Restrict allowed file types' settings?
# How to add more options to the 'Restrict allowed file types' settings?

(Asked by: username_0 on 2014-07-28)

I am wondering what would be the best approach to add another file type to the 'Restrict allowed file types' asset field settings?

For our website specification we need to have .zip files and .pdf files only for this field, however I can only restrict to .pdf.

**Tags:** assets, fieldtypes, field

---

## 3 answers

### Answer by username_1 on 2014-07-28. Score: 5 | Accepted answer

Currently, no. The list you see there is the result of a function in `IOHelper` called `getFileKinds`. It just hands out an array of options. While I don't have a recommendation for making this work, I do suggest you send a feature request to: support@buildwithcraft.com

With it already being a function, I can see there being a possibility of them allowing users to add custom restricted extension options via a config setting.

> **Comments:**
> **username_2**: As of 2021, this answer is incorrect - there is a way via [extraFileKinds](https://craftcms.com/docs/3.x/config/config-settings.html#extrafilekinds) config option.  

---

### Answer by username_3 on 2017-02-17. Score: 13

You can now set allowedFileExtensions and extraAllowedFileExtensions in your config file. The first will re-define the list of allowed files, where the latter will allow you to add additional file types.
For example, I needed to add 3 additional formats:
'extraAllowedFileExtensions' => 'bim, dwg, rvt'

See the documentation here for details.


---

### Answer by username_2 on 2021-10-27. Score: 2

The `allowedFileExtensions` and `extraAllowedFileExtensions` config options change what file types are actually allowed to be uploaded at all.

To actually give more options under 'Restrict allowed file types' on an assets field, use the [extraFileKinds](https://craftcms.com/docs/3.x/config/config-settings.html#extrafilekinds) config option.


---

