# Upload archive files (rar,zip)

**URL:** <https://community.transloadit.com/t/upload-archive-files-rar-zip/14872>\
**Category:** Uppy\
**Created:** [April 7, 2019, 7:48am UTC](https://community.transloadit.com/t/upload-archive-files-rar-zip/14872 "2019-04-07T07:48:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bocimayer](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/bocimayer/32/172_2.png) [@bocimayer](https://community.transloadit.com/u/bocimayer)\
**Post date:** [April 7, 2019, 7:48am UTC](https://community.transloadit.com/t/upload-archive-files-rar-zip/14872/1 "2019-04-07T07:48:22Z")

</div>

Hi, I’m developing a site and unable to add rar and zip files to `allowedFileTypes`.  
Trying with value:  
`['image/*', 'video/*', 'application/zip', 'application/x-rar-compressed', 'application/vnd.rar']`  
The default error message is shown when trying to upload a winrar created rar or zip file:  
“`You can only upload: image/*, video/*, application/zip, application/x-rar-compressed, application/vnd.rar`”  
What is wrong here?  
PLS help!

---

<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:** [April 8, 2019, 10:48am UTC](https://community.transloadit.com/t/upload-archive-files-rar-zip/14872/2 "2019-04-08T10:48:28Z")

</div>

Hi! Which browser are you using? It’s possible that one doesn’t recognise RAR files correctly.

As a workaround, you can add acceptable extensions to your list:

```
['application/vnd.rar', '.rar']

```

Now, if the browser doesn’t recognise the vnd.rar MIME type, files named `xyz.rar` will still be accepted.

---

<div class="post-metadata">

**Author:** ![bocimayer](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/bocimayer/32/172_2.png) [@bocimayer](https://community.transloadit.com/u/bocimayer)\
**Post date:** [April 8, 2019, 3:45pm UTC](https://community.transloadit.com/t/upload-archive-files-rar-zip/14872/3 "2019-04-08T15:45:34Z")

</div>

Great solution! Thanks! Did not find anything about this anywhere, and di look multiple times… It was chrome. And it works with ‘.zip’ too.
