micdzi
April 24, 2024, 1:34pm
1
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:
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 ?
reetp
April 24, 2024, 2:34pm
2
I’d make your feelings known here
opened 06:51AM - 06 Mar 24 UTC
wontfix
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
opened 08:30AM - 08 Feb 24 UTC
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.
1 Like