-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
RocketChat 3.0.4 does not allow .zip uploads (HTTP 400) #17011
Comments
Sir,my version 2.4.11 is working fine. You can try just as below Could you give me a hand. run docker-compose with multiple instances will meet a strange but ' MongoError: ns not found', 'Errors like this can cause oplog processing errors.' |
EDIT: if I allow every file type, the upload works. So some issue on the file check? Same issue here - without docker. Configured same media types, increased upload size, nothing helped either. Got some infos from the debug logs:
|
Yes, same here. when I clear the list of allowed mime-types I can upload a ZIP file. Seems to be a mime-type mismatch (in combination with a broken error feedback loop). |
Same here, uploading of .pdf works while .zip returns HTTP 400 Bad gateway. This issue for some users, while not for other users. Issue seems not related to client devices after many tests. |
it's application/x-zip-compressed, so sorry |
sir,we as using 3.3.3 with application/x-zip-compressed, |
Hi codeneno, thanks for the reply, the error is reproducible on other computers. I will upgrade to 3.3.3 |
you are welcome |
@hans4rc how many users do you have? we just want to know how to support more than 8k people |
At present we have 146 users here. |
Very interesting! application/zip = ok application/x-zip = failed application/x-zip-compressed = failed application/zip,application/x-zip,application/x-zip-compressed = ok So, THE correct and only working MIME type is application/zip! |
haha,it's a small bug |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
At the moment i use version 3.4.2 I have set the following values for the compressed media types: And it works fine! Thie issue can be closed. |
Uploading of .pdf, .jpeg or .doc works but when I try to upload a ZIP archive, I get a HTTP 400 response back for the POST request from the back-end. Site URL is set correctly, I tried GridFS as well as local file-system, tried allow unauthroized uploads, etc. - this all did not help.
Btw I am running RocketChat via docker-compose in docker containers.
Any help is appreciated.
The text was updated successfully, but these errors were encountered: