# File restrictions to only ISO files

**URL:** <https://community.transloadit.com/t/file-restrictions-to-only-iso-files/14679>\
**Category:** Uppy\
**Created:** [March 9, 2018, 6:41pm UTC](https://community.transloadit.com/t/file-restrictions-to-only-iso-files/14679 "2018-03-09T18:41:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kernelre](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@kernelre](https://community.transloadit.com/u/kernelre)\
**Post date:** [March 9, 2018, 6:41pm UTC](https://community.transloadit.com/t/file-restrictions-to-only-iso-files/14679/1 "2018-03-09T18:41:16Z")

</div>

I want to configure Uppy to accept only .iso files(Disk Image Files). What should the allowed allowedFileTypes be in order to accept only ISO files.

---

<div class="post-metadata">

**Author:** ![goto-bus-stop](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/goto-bus-stop/32/18_2.png) [@goto-bus-stop](https://community.transloadit.com/u/goto-bus-stop)\
**Post date:** [March 15, 2018, 3:10pm UTC](https://community.transloadit.com/t/file-restrictions-to-only-iso-files/14679/2 "2018-03-15T15:10:23Z")

</div>

Hey! Wikipedia claims `.iso` files have a mime type of `application/x-iso9660-image`, but unfortunately Uppy does not detect that, and I think many browsers don’t either. Chrome detects `application/x-cd-image`, and Firefox doesn’t detect it at all.

Currently `allowedFileTypes# only works with mime types; perhaps we should allow extensions as well for this use case?

---

<div class="post-metadata">

**Author:** ![jzwolak](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/jzwolak/32/195_2.png) [@jzwolak](https://community.transloadit.com/u/jzwolak)\
**Post date:** [January 21, 2020, 6:58pm UTC](https://community.transloadit.com/t/file-restrictions-to-only-iso-files/14679/3 "2020-01-21T18:58:52Z")

</div>

Yes, file extensions should be allowed to define file types. I am working with “exotic” files (as one user mentioned it) and there is no magic number or well defined mime type. The files are AB1 files and Genbank files. AB1 does have a unique first few characters that could be used to identify it. Genbank is a plain text format that would be hard to reliably detect by the first few characters. In both cases, I would really like to just give the extensions and have Uppy restrict based on extension, when it can.

---

<div class="post-metadata">

**Author:** ![goto-bus-stop](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/goto-bus-stop/32/18_2.png) [@goto-bus-stop](https://community.transloadit.com/u/goto-bus-stop)\
**Post date:** [January 23, 2020, 3:12pm UTC](https://community.transloadit.com/t/file-restrictions-to-only-iso-files/14679/4 "2020-01-23T15:12:38Z")

</div>

@jzwolak We actually added support for that in [this PR](https://github.com/transloadit/uppy/pull/814)!

so you can now do:

```auto
allowedFileTypes: ['.iso', '.ext', 'application/some-mime-type']

```

and it will allow things that have one of those extensions or that have that mime type.
