Skip to content
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

Some Uploads still don't work #1449

Closed
aimador opened this issue Dec 10, 2019 · 10 comments
Closed

Some Uploads still don't work #1449

aimador opened this issue Dec 10, 2019 · 10 comments

Comments

@aimador
Copy link

aimador commented Dec 10, 2019

  • Your Rocket.Chat Experimental app version: 1.25.0.13048
  • Also Non-Experimental Version 4.1.0.2095
  • Your Rocket.Chat server version: 2.3.0
  • Device (or Simulator) you're running with: Nokia 8.1 (Android 9), LG G2 (Lineage 16), Huawei P20, P30 (Android 9)

As posted here: #1325 (The OP closed the issue...), this is still an issue.
I've also posted this in the old android app section #2507. It affects both apps and no usable debug logs are generated on the server.

This time I've tested the app versions mentioned above. JPG uploads from the channel view do not work (Error: "Try again"). Sharing from another application, e.g. gallery, doesn't work either.
Taking a picture from within the apps produces smaller picture, which uploads just fine. The taken picture can be re-uploaded from the room view via "Choose file", which works just fine.
Pictures received in Whatsapp can be uploaded as well.

So I'm asking again: is there a hard coded size limit or something? JPG uploads (6-8 MB) from the desktop client do work, so it's not the file size limit on the server.

Anyone else with this problem?

@diegolmello
Copy link
Member

@aimador I tried to upload a 15MB video now and it worked. Can you try uploading one 10MB+ video?

@aimador
Copy link
Author

aimador commented Dec 10, 2019

Tried a 42 MB video that I've just recorded. Failed in both apps.

@diegolmello
Copy link
Member

@aimador Can you reach me at https://open.rocket.chat? I'm @diego.mello.

@aimador
Copy link
Author

aimador commented Jan 27, 2020

Hi Diego,
any news on the issue?

@dholbrook86
Copy link

Any news on this issue?

@C1ean
Copy link

C1ean commented Jan 30, 2020

Same problem on latest app (4.3.1 & 2.4.2 server)

@aimador
Copy link
Author

aimador commented Feb 6, 2020

Sounds familiar: #1665

Can anyone confirm this: #1647
If that works, why does this not affect all other clients?

@diegolmello
Copy link
Member

Have you tried #1647 (comment)?

Server uses meteor to upload files and app uses REST API.
Nginx default client_max_body_size is 1MB.
http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size

Please confirm it fixes for you and we'll add this config to the docs.

@C1ean
Copy link

C1ean commented Feb 29, 2020

Yes it works, the problem is resolved! Many thanks!

@udvarit
Copy link

udvarit commented Aug 20, 2021

Just so it's clearer for future readers, how I did this on my env:

  1. Opened /etc/nginx/sites-enabled/default
  2. Added client_max_body_size 50M; in the server block, after the error_log line
  3. Restarted nginx with # systemctl restart nginx.service

My env: Debian GNU/Linux 10 (buster), Rocket.Chat Server version: 2.4.14, installed via snap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants