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

[ReactNative] Add support for uploading files with content uri #2231

Open
jiwansvmx opened this issue Sep 14, 2021 · 3 comments
Open

[ReactNative] Add support for uploading files with content uri #2231

jiwansvmx opened this issue Sep 14, 2021 · 3 comments

Comments

@jiwansvmx
Copy link
Contributor

jiwansvmx commented Sep 14, 2021

  1. Version of Mobile SDK Used: 8.3.0
  2. Issue found in Native App or Hybrid App: React Native
  3. OS Version: 10.0
  4. Device: Pixel 3A
  5. Steps to reproduce:
  6. Actual behavior: content uris aren't supported by in
  7. Expected Behavior: support content uris
  8. Error Log:

Apologies if this has been asked before.
The sdk right now doesn't handle files with content uris, it fails with following error

URI scheme is not \\\"file\\\"\"}

With ScopedStorage stuff it would be helpful if the sdk supported content uris. This solution seems to work, and I was wondering if it made sense to include it in the sdk. I am willing to send a pr there if is interest, let me know.

Thanks

@wmathurin
Copy link
Contributor

We support uploading local files.
See this as an example

@jiwansvmx
Copy link
Contributor Author

@wmathurin

We support uploading local files.

Sure, as long as the uri is an actual file path i.e it start with file://. My question was regarding media files picked via ContentResolver where you typically get a content-uri eg content://media/external/images/media/27.

@wmathurin
Copy link
Contributor

Understood. We created a story to capture this enhancement request. We will update here if/when we decide to add support for content-uri.

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

No branches or pull requests

2 participants