Skip to content
This repository has been archived by the owner on Jun 7, 2020. It is now read-only.

File upload problems. Some work, some don't. #2507

Open
ghost opened this issue Oct 24, 2019 · 2 comments
Open

File upload problems. Some work, some don't. #2507

ghost opened this issue Oct 24, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 24, 2019

Description

Can't upload any file to a channel or private discussion. (both normal and experimental app)
The app will show the usual settings for the upload (name / description). If you hit "upload" it will actually send the file to the server, but when it reaches 100% it will tell you that it failed and you should "Try again". Doing so will show the same error.

Update: If you try to send images, that you've received via whatsapp or downloaded somewhere, it actually suceeds. If you upload camera photos it fails. Downloaded PDFs also work
Tested with an empty whitelist and -1 file size.

Can anyone help me with this? Is there a hard coded size limit or whitelist in the app?

Devices and Versions

Your Rocket.Chat.Android version: 4.0.2.2087
Your Rocket.Chat Server version: 2.1.1

Mobile device model and OS version:
LG G2 int. Lineage OS 16.0-20191018
Huawei P20 Android 8

Steps to reproduce

Log into your server and try to upload any file to any channel / private discussion.

Logs

Unfortunately no relevant logs are generated on the server.
This happens when you access the upload file dialog:

I20191024-10:58:56.440(2) API ➔ debug GET: /api/v1/subscriptions.get?updatedSince=2019-10-24T08%3A58%3A21.487Z I20191024-10:58:56.445(2) Meteor ➔ method subscriptions/get -> userId: uwDytkN6KatcYWH37 , arguments: [ 2019-10-24T08:58:21.487Z ] I20191024-10:58:56.457(2) Meteor ➔ method UserPresence:online -> userId: uwDytkN6KatcYWH37 , arguments: [] I20191024-10:58:56.458(2) API ➔ debug Success { statusCode: 200, body: { update: [ [Object] ], remove: [], success: true } } I20191024-10:58:56.470(2) API ➔ debug GET: /api/v1/rooms.get?updatedSince=2019-10-24T08%3A58%3A21.487Z I20191024-10:58:56.471(2) Meteor ➔ method rooms/get -> userId: uwDytkN6KatcYWH37 , arguments: [ 2019-10-24T08:58:21.487Z ] I20191024-10:58:56.480(2) API ➔ debug Success { statusCode: 200, body: { update: [], remove: [], success: true } } I20191024-10:58:56.736(2) API ➔ debug GET: /api/v1/chat.syncMessages?roomId=zAdW96Hri69pRffpB&lastUpdate=2019-10-24T08%3A58%3A21.479Z I20191024-10:58:56.737(2) Meteor ➔ method messages/get -> userId: uwDytkN6KatcYWH37 , arguments: [ 'zAdW96Hri69pRffpB', { lastUpdate: 2019-10-24T08:58:21.479Z } ] I20191024-10:58:56.743(2) Meteor ➔ method canAccessRoom -> userId: uwDytkN6KatcYWH37 , arguments: [ 'zAdW96Hri69pRffpB', 'uwDytkN6KatcYWH37' ] I20191024-10:58:56.749(2) API ➔ debug Success { statusCode: 200, body: { result: { updated: [], deleted: [] }, success: true } } I20191024-10:58:56.894(2) API ➔ debug POST: /api/v1/subscriptions.read I20191024-10:58:56.895(2) Meteor ➔ method readMessages -> userId: uwDytkN6KatcYWH37 , arguments: [ 'zAdW96Hri69pRffpB' ] I20191024-10:58:56.899(2) API ➔ debug Success { statusCode: 200, body: { success: true } } I20191024-10:58:56.918(2) Meteor ➔ method canAccessRoom -> userId: uwDytkN6KatcYWH37 , arguments: [ 'zAdW96Hri69pRffpB', 'uwDytkN6KatcYWH37', undefined ]

The usual entry like "success=true" or at least some form of feedback is missing though. No error or anything when the file upload fails.

File Upload Settings

File Upload Enabled: yes
Max Size: 104857600 (also tried -1)
Allowed File Types: standard (image/,audio/,video/*,application/zip,application/x-rar-compressed,application/pdf,text/plain,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document) (also tried with an empty list)
Protect Files: yes
Enable Json Web Token protection: yes
Token: [xyz]
Storage: GridFS
File Upload enabled direct: yes

@seasick
Copy link

seasick commented Oct 24, 2019

I'm also encountering this bug with server version 2.0.0 and client versions 4.0.2.2087 and 3.5.0 (2074).
I can also confirm that e.g. Whatsapp images are successfully uploaded

@reetp
Copy link

reetp commented Oct 24, 2019

The Android app has moved to React Native.

Please see: #2499

And: https://rocket.chat/2019/10/11/moving-mobile-apps-to-react/

Anyone on Android 3.5.x should upgrade to v4.x and follow up in the React Native repo:

https://github.com/RocketChat/Rocket.Chat.ReactNative

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

No branches or pull requests

2 participants