# File upload - Bad request

**URL:** <https://forums.rocket.chat/t/file-upload-bad-request/7246>\
**Category:** Community Support\
**Created:** [June 8, 2020, 9:34pm UTC](https://forums.rocket.chat/t/file-upload-bad-request/7246 "2020-06-08T21:34:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rex](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rex](https://forums.rocket.chat/u/rex)\
**Post date:** [June 8, 2020, 9:34pm UTC](https://forums.rocket.chat/t/file-upload-bad-request/7246/1 "2020-06-08T21:34:04Z")

</div>

### Description

I keep getting “bad request” when uploading a file. I can’t find anything in the logs to help me understand this. The file is zip, which is allowed. I’m using the default GridFS for storage and uploads are enabled.

How can I diagnose and fix this?

### Server Setup Information

- Version of Rocket.Chat Server: 3.0.7
- Operating System: Debian
- Deployment Method: manual
- Number of Running Instances: 1
- DB Replicaset Oplog:
- NodeJS Version:
- MongoDB Version: 4.2.5
- Proxy: nginx
- Firewalls involved:

### Any additional Information

---

<div class="post-metadata">

**Author:** ![rex](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rex](https://forums.rocket.chat/u/rex)\
**Post date:** [June 9, 2020, 12:02am UTC](https://forums.rocket.chat/t/file-upload-bad-request/7246/2 "2020-06-09T00:02:10Z")

</div>

I can see that a zip file is being rejected:  
`rooms.upload/:rid threw an error: Error: File type is not accepted.`

So, the problem is that the default accept list isn’t working.

The default accept list includes:  
`application/zip,application/x-rar-compressed`

But those are apparently inadequate. At least, when I tested, the types were reported as:  
`application/x-zip-compressed,application/octet-stream`

for the respective types (zip, rar).
