# Media upload Issue

**URL:** <https://forums.rocket.chat/t/media-upload-issue/19918>\
**Category:** Community Support\
**Created:** [April 24, 2024, 1:34pm UTC](https://forums.rocket.chat/t/media-upload-issue/19918 "2024-04-24T13:34:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![micdzi](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@micdzi](https://forums.rocket.chat/u/micdzi)\
**Post date:** [April 24, 2024, 1:34pm UTC](https://forums.rocket.chat/t/media-upload-issue/19918/1 "2024-04-24T13:34:45Z")

</div>

### Description

I am unable to upload \*.mot files via rocket chat.  
(This is compiled hex file as plain text)

I tried to add Accepted media Type “text/plain”  
Determined by uploading file here:

> **[MIME File Type Checker - HTMLStrip](https://www.htmlstrip.com/mime-file-type-checker)**

### Server Setup Information

- Version of Rocket.Chat Server: 6.7.0
- Operating System: Ubuntu 22.04.3
- Deployment Method: snap
- Number of Running Instances: 1
- DB Replicaset Oplog:
- NodeJS Version: 14.21.2
- MongoDB Version: 5.0.15
- Proxy: nginx
- Firewalls involved:

### Any additional Information

When try to upload file i can se an error: "Media Type Not Accepted: "  
It does not show what type of media is this.

Any idea how to fix it ?

---

<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 24, 2024, 2:34pm UTC](https://forums.rocket.chat/t/media-upload-issue/19918/2 "2024-04-24T14:34:14Z")

</div>

I’d make your feelings known 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\_

There are several MIME bugs

> <https://github.com/RocketChat/Rocket.Chat/issues/31692>
>
> Can't send ovpn file
> \### Steps to reproduce:
> 
> 1. try to send ovpn file
> 2. se…e "media types not accepted"
> 
> \### Expected behavior:
> 
> i can send it as it was before.
> 
> \### Actual behavior:
> 
> "media types not accepted" error
> 
> \### Server Setup Information:
> 
> \- Version of Rocket.Chat Server: installed: 6.6.0 (1602) 361MB -
> \- Operating System: ubuntu 
> \- Deployment Method: snap
> \- Number of Running Instances: 1
> \- DB Replicaset Oplog: 
> \- NodeJS Version: 
> \- MongoDB Version:
> 
> \### Client Setup Information
> 
> \- Desktop App or Browser Version: 3.9.12
> \- Operating System: Windows

Simple answer is they have decided to automatically block unknown types. However, their detection is not good so genuine attachments are getting binned.

It really isn’t good enough.

---

<div class="post-metadata">

**Author:** ![hugocosta](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/hugocosta/32/4753_2.png) [@hugocosta](https://forums.rocket.chat/u/hugocosta)\
**Post date:** [May 23, 2024, 1:48pm UTC](https://forums.rocket.chat/t/media-upload-issue/19918/3 "2024-05-23T13:48:04Z")

</div>

> [@Media Type Not Supported despite not setting restrictions](https://forums.rocket.chat/t/media-type-not-supported-despite-not-setting-restrictions/19616/4):
>
> Hi everyone, thanks for your patience, the fix is on the way in this PR: [fix: Accepted Media Types settings validation](https://github.com/RocketChat/Rocket.Chat/pull/32478)
