Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
poliahrameshkumar opened this issue Jan 10, 2022 · 11 comments

Comments

@poliahrameshkumar
Copy link

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
Copy link

ghost commented Jan 12, 2022

@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
Copy link
Author

@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
Copy link

ghost commented Jan 12, 2022

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

@poliahrameshkumar
Copy link
Author

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

@ghost
Copy link

ghost commented Jan 25, 2022

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

@poliahrameshkumar
Copy link
Author

poliahrameshkumar commented Feb 10, 2022

@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
Copy link

ghost commented Feb 10, 2022

@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
Copy link
Author

poliahrameshkumar commented Feb 22, 2022

@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
Copy link

ghost commented Feb 23, 2022

@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
Copy link
Author

@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
Copy link

ghost commented Mar 15, 2022

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

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

No branches or pull requests

1 participant