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

Image upload does not work on Group chat.

Open darewealth opened this issue 5 years ago • 4 comments

Expected behavior

I was trying to snap a picture with the use of 'Take of photo' feature and upload through a group chat. I followed the procedure as directed in the app, but I encounter different thing.

Actual behavior

The 'Take a photo' feature work correctly, and I was able to take the picture. However, when I tried to upload via a chat room. The upload works but no image displayed. I tried this several time to be sure about the behavior, but the same thing continues to persist.

How to reproduce

  • Launch the application

  • Create a group chat

  • Click on the plus icon on the chat channel you have created, by the down right on the chat column

  • There will be a pop up with three options.

  • Click on the ''Take a photo'' option.

  • Take an image with your mobile camera, and upload.

  • The error will occur.

  • Rockchat App version: 3.2.0

  • Operating system: Android 6.1

  • Device: Itel

Recording Of The Bug

https://youtu.be/BouEGnm8WPg

darewealth avatar Mar 25 '19 00:03 darewealth

I've also encountered this issue. Uploading works fine on web and iOS clients but fails on Android. Drawings work, images and other file types do not. When trying to upload something it works for a while, showing the dots. Then a toast pops up complaining about invalid JSON data at $. I would try fixing this myself as it is quite a big issue for us but I currently have neither time nor experience working in Android development to do this.

This happens on different versions of Android, App version 3.4.1

Edit: some of our users are able to upload files from Android using the same App version...

OskarCarl avatar May 24 '19 13:05 OskarCarl

I had this issue as well. It turns out that my reverse proxy (nginx) was limiting upload size to 1MB. After increasing it (I did 50M), the problem went away.

ritlew avatar Jun 26 '19 13:06 ritlew

Wow, thank you, fixed it. Sometimes it's the simple things...

OskarCarl avatar Jun 26 '19 14:06 OskarCarl

Setting nginx to

client_max_body_size 100M;

fixed it for me as well.

rasos avatar Jul 17 '19 13:07 rasos