Can't upload ovpn file


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
1 Like

Rocket.Chat Server: 6.6.0
Same issue

Problem in this commit

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.

The fix it’s in this PR: fix: Accepted Media Types settings validation