QuickBlox / quickblox-react-native-samples

quickblox-react-native-samples
BSD 3-Clause "New" or "Revised" License
17 stars 27 forks source link

Error: Can't load file from uriString when upload audio file Android #27

Open poliahrameshkumar opened 2 years ago

poliahrameshkumar commented 2 years ago

I am getting error message Error: Can't load file from uriString when uploading audio and PDF files with Quickblox in React Native Android app. It is working for images and videos. Quickblox documentation confirms it supports all file formats for chat attachment. Could someone please guide me how to get rid of this error?

ghost commented 2 years ago

@poliahrameshkumar Hello Ramesh,

This is Nikolay from QuickBlox support.

We have created an internal ticket and forwarded it to our developers. Once there is any news or we need more information, we will let you know.

poliahrameshkumar commented 2 years ago

@QB-nikolay-zolotarov Could you please let us know when it can be resolved? My Team has done both audio/video call integration and chat. It is just a matter of time resolving this issue and go to production with Quickblox enterprise subscription. I request you to resolve this on priority.

ghost commented 2 years ago

@poliahrameshkumar Our developers are already working on the issue. The task was prioritized. ETA - next Friday 21 Jan.

poliahrameshkumar commented 2 years ago

@QB-nikolay-zolotarov any update do you have? I checked with the latest package but still the issue exists.

ghost commented 2 years ago

@poliahrameshkumar Our developers are still working on it. We will update you as soon as possible.

poliahrameshkumar commented 2 years ago

@QB-nikolay-zolotarov Could you please update the status of the fix, as it is more than a month and still we are waiting for the fix. Our production release date is getting affected because of unavailability of this fix. Could you confirm when It will get fixed? Please resolve the issue as soon as possible.

ghost commented 2 years ago

@poliahrameshkumar Please check the attached archive with a sample code with the possibility to send any files as chat message attachments. As we have checked, it works with .pdf, .mp3. quickblox-react-native-chat-sample.zip

poliahrameshkumar commented 2 years ago

@QB-nikolay-zolotarov The sample you provided make use of content path URI. So, it is working. But the fix has to be for file path URI also as content path URI would support only open folders like Download folder. It may not support internal app specific folder. Could you please provide the fix for file path URI?

ghost commented 2 years ago

@poliahrameshkumar To provide you with the appropriate answer, please clarify the following points:

  1. Why do you have to use the File URI?
  2. "content path URI would support only open folders like Download folder" We can't find information about that. Could you please provide us with the confirmation?
  3. Please clarify why you can’t convert File URI to Content URI.
poliahrameshkumar commented 2 years ago

@QB-nikolay-zolotarov Below is the answer.

  1. We are using react-native-audio-recorder-player package to record and play audio and it gives file path URI only. When are using this file path URI to attach audio file we are getting the mentioned error.
  2. We use Cache folder of the particular app to temporarily record the audio. We are not able to generate content URI for this Cache folder files.
  3. We are able to convert File URI to Content URI for few folder files but not for Cache folder of the app.

So, it would be better if there is a fix for File URI to attach audio files.

ghost commented 2 years ago

Please check the updated SDK with a fix: https://github.com/QuickBlox/quickblox-react-native-sdk/releases/tag/0.5.19-beta