QuickBlox / quickblox-android-sdk

QuickBlox Android SDK includes code snippets with main use cases and framework JAR library.
BSD 3-Clause "New" or "Revised" License
417 stars 697 forks source link

Cannot upload document files on Quickblox android #805

Closed ravikumarneo closed 1 year ago

ravikumarneo commented 1 year ago

Connection failed. Please check your internet connection.

sshaforenkoqb commented 1 year ago

@ravikumarneo Please provide additional details.

ravikumarneo commented 1 year ago

using uploadFileTask method. image and .mp4 files are being uploaded sucessfully, but .pdf, docs file uploading throw Error.

ravikumarneo commented 1 year ago

Error Message is: Connection failed, Please check your internet connection

but this is not helping in guessing the issue.

sshaforenkoqb commented 1 year ago

Are you reproducing this issue using your own code or using the QuickBlox chat sample?

ghost commented 1 year ago

@sshaforenkoqb I have got the same problem. Uploading an image is successful but it's failed with a .pdf file. I am following the documentation (https://docs.quickblox.com/docs/android-content#upload-file) to implement upload files. There are no additional things.

vdovbnya-qb commented 1 year ago

Hi @ravikumarneo @quangnguyen-agilityio To investigate this issue, need to provide additional information:

  1. The version of QuickBlox Android SDK you are using
  2. The size of the file you are trying to upload
  3. Provide logs of REST-requests for file upload.

Also, try to reproduce this issue on our chat samples: https://github.com/QuickBlox/quickblox-android-sdk/tree/master/sample-chat-kotlin https://github.com/QuickBlox/quickblox-android-sdk/tree/master/sample-chat-java