-
Notifications
You must be signed in to change notification settings - Fork 11.7k
Can't upload ovpn file #31692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Same problem here with 6.6.0, can't send gpg files and in admin settings I am not blocking any file type. In previous version (6.5.x) it did work. |
Not only ovpn file does not upload. You can try to create the empty file with name |
See my comment #31346 (comment) |
Check The extension of your file is not defined in the mime-db repo, so the type of your file should become undefined during lookup in the I guess you should define your own type in the |
ovpn file is text/plain Can we turn off media type checking at all ? |
mime type ovpn file is text/plain. Mime-db have next extensions: "txt","text","conf","def","list","log","in","ini" |
Ok, can we make changes at the mime db ? |
Can you send ovpn file via web interface ? |
only if rename file from .ovpn to .txt |
I guess, it throws a media type alert due to extension check, as type is left undefined since checking if there's no such extension in the mime-db. So, in order to allow the media type, there are two ways to upload files that don't consume mime-db:
|
It's because the file does not pass the extension check as the extension is not defined in the mime-db. The error occurs on the Rocket.Chat frontend side. You can check my first answer. But to be honest, I don't think there's a way to define an empty extension in the mime-db but you can try. |
Then - I did
and then You can check it then
|
@emoxam ,if the issue is not resolved yet , i can work on this... |
I will be very appreciate this! |
can u assign it to me.. @emoxam ... |
@Thanush19 I am an ordinary user, i don't have such rights. Or i just don't know how ? |
We have the same problems with .py, .drawio, .r and .rmd files in RocketChat App and Browser. None of the named have official MIME types assigned (as far as I know). I my experience as a web developer: relying on MIME types creates a lot of headaches. Finally (in our own web applications), we check for MIME types (where possible) and if this fails, we check for filename extensions. |
Can't send ovpn file
Steps to reproduce:
Expected behavior:
i can send it as it was before.
Actual behavior:
"media types not accepted" error
Server Setup Information:
Client Setup Information
The text was updated successfully, but these errors were encountered: