# Media Type Not Supported despite not setting restrictions

**URL:** <https://forums.rocket.chat/t/media-type-not-supported-despite-not-setting-restrictions/19616>\
**Category:** Community Support\
**Created:** [March 5, 2024, 12:24pm UTC](https://forums.rocket.chat/t/media-type-not-supported-despite-not-setting-restrictions/19616 "2024-03-05T12:24:37Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![reetp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/reetp/32/5546_2.png) [@reetp](https://forums.rocket.chat/u/reetp)\
**Post date:** [April 22, 2024, 12:48pm UTC](https://forums.rocket.chat/t/media-type-not-supported-despite-not-setting-restrictions/19616/3 "2024-04-22T12:48:52Z")

</div>

There is a bug here:

> <https://github.com/RocketChat/Rocket.Chat/issues/31906>
>
> Look like a last change is a error
> Because
> Was: invalidContentType: Boolean…(file.type && !fileUploadIsValidContentType(file.type)),
> Now: invalidContentType: !(file.type && fileUploadIsValidContentType(file.type)),
> If we can't detrminate a MIME type of a file (file.type) it will return a false and all not recognised types will be not work at all even if "Accepted Media Types" is empty.
> Please revert
> https://forums.rocket.chat/t/cant-upload-ovpn-file/19455
> 
> \_Originally posted by @DustpaN-Spb in https://github.com/RocketChat/Rocket.Chat/issues/31346#issuecomment-1975862098\_

And this:

> [@Can't upload ovpn file](https://forums.rocket.chat/t/cant-upload-ovpn-file/19455):
>
> Description Can’t send ovpn file “media types not accepted” Server Setup Information Version of Rocket.Chat Server: installed: 6.6.0 (1602) 361MB - Operating System: ubuntu Deployment Method: snap Number of Running Instances: DB Replicaset Oplog: NodeJS Version: MongoDB Version: Proxy: nginx Firewalls involved: Desktop App or Browser Version: 3.9.12 Operating System: Windows

---

_[View the full topic](https://forums.rocket.chat/t/media-type-not-supported-despite-not-setting-restrictions/19616)._
