Rocket.Chat.Android
Rocket.Chat.Android copied to clipboard
Image upload does not work on Group chat.
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
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...
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.
Wow, thank you, fixed it. Sometimes it's the simple things...
Setting nginx to
client_max_body_size 100M;
fixed it for me as well.