Rocket.Chat.ReactNative icon indicating copy to clipboard operation
Rocket.Chat.ReactNative copied to clipboard

Some Uploads still don't work

Open ghost opened this issue 6 years ago • 10 comments

  • 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?

ghost avatar Dec 10 '19 15:12 ghost

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

diegolmello avatar Dec 10 '19 15:12 diegolmello

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

ghost avatar Dec 10 '19 16:12 ghost

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

diegolmello avatar Dec 10 '19 16:12 diegolmello

Hi Diego, any news on the issue?

ghost avatar Jan 27 '20 15:01 ghost

Any news on this issue?

dholbrook86 avatar Jan 30 '20 04:01 dholbrook86

Same problem on latest app (4.3.1 & 2.4.2 server)

C1ean avatar Jan 30 '20 22:01 C1ean

Sounds familiar: #1665

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

ghost avatar Feb 06 '20 09:02 ghost

Have you tried https://github.com/RocketChat/Rocket.Chat.ReactNative/issues/1647#issuecomment-581506291?

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.

diegolmello avatar Feb 10 '20 12:02 diegolmello

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

C1ean avatar Feb 29 '20 23:02 C1ean

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

udvarit avatar Aug 20 '21 13:08 udvarit