Cant upload python files
Description:
When I try to upload the python files, it is throwing an error as media types not accepted and here are version details
Steps to reproduce:
Add "application/x-python,application/python,application/*.py,text/python,text/x-java,text/x-script.phyton,application/x-bytecode.python,application/octet-stream" (exact MIME type) to the list of "Accepted Media Types" (Administration --> File Upload)
Open a channel
Try to upload a file produced with Python(test.py)
Expected behavior:
The file will be uploaded and a message with the attachment will be posted to the channel.
Actual behavior:
The upload will be rejected with the note "Media Types Not Accepted".
Version Details :
0.72.3
Still present in the latest version (3.7.0)
It's a real problem in my organization. Is there a workaround ?
I have run into the same problem. I ended up emptying out the "Accepted Media Types" field under "File Uploads" in the settings, but even after repeated restarts, this does nothing.
Renaming my file to ".py.txt" allows me to upload it, but I would like to see this fixed ASAP so I don't have to use this workaround.
This is critical
I wouldn't know about that, but it is pretty annoying and it seems like this would be trivial to fix for someone who is familiar with the project.
Still present in the latest version (3.7.0)
![]()
If we remove the block for "image/svg+xml" by clearing the "Blocked Media Types" field, then py-files can be uploaded, otherwise not. That seems to be a bug.
Also hpp file doesn' t work.
I could find out where the problem is. In the source code under packages/meteor-jalik-ufs/ufs-mime.js is a list of datatypes. After some testing, I got to the conclusion that every type in there can be sent without getting blocked
I could find out where the problem is. In the source code under packages/meteor-jalik-ufs/ufs-mime.js is a list of datatypes. After some testing, I got to the conclusion that every type in there can be sent without getting blocked
Well done! Does that mean, we only have to include the file-endings which we desire to share? Or is that accompanied with any undesired side-effects?
I guess so, but I cannot assure you that this will work because I'm not very experienced with javascript
It looks as if the problem has been fixed in 3.11.1 (or 3.11.0)
Not fixed in 3.18.0 https://github.com/RocketChat/Rocket.Chat/issues/23173
This extremely annoying bug has been frustrating people for 3 years now. It seems that it should be trivial to fix. Is there any reason to not fix this?
This is still an issue with 6.6.2. A workaround is to suffix all rejected files with .txt, or .zip.
Seems it was working fine in 6.5.x. In my chat history I successfully sent someone a .csr file a couple months ago. Now in (currently) 6.6.6 the chat is rejecting such files.
Just checking in to say it seems to work as expected with 6.10.0.
working as expected with v6.13.0