quickblox-react-native-samples icon indicating copy to clipboard operation
quickblox-react-native-samples copied to clipboard

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

Open poliahrameshkumar opened this issue 3 years ago • 11 comments

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?

poliahrameshkumar avatar Jan 10 '22 10:01 poliahrameshkumar

@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.

ghost avatar Jan 12 '22 10:01 ghost

@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.

poliahrameshkumar avatar Jan 12 '22 10:01 poliahrameshkumar

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

ghost avatar Jan 12 '22 10:01 ghost

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

poliahrameshkumar avatar Jan 25 '22 10:01 poliahrameshkumar

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

ghost avatar Jan 25 '22 11:01 ghost

@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.

poliahrameshkumar avatar Feb 10 '22 05:02 poliahrameshkumar

@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

ghost avatar Feb 10 '22 11:02 ghost

@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?

poliahrameshkumar avatar Feb 22 '22 07:02 poliahrameshkumar

@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.

ghost avatar Feb 23 '22 12:02 ghost

@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.

poliahrameshkumar avatar Feb 24 '22 07:02 poliahrameshkumar

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

ghost avatar Mar 15 '22 13:03 ghost