forcedotcom / forcedotcom/SalesforceMobileSDK-Android
[ReactNative] Add support for uploading files with content uri
- Dominant language
- Kotlin
- Stars
- 361
- Forks
- 393
- Avg merge
- 17h 17m
- Merged PRs (30d)
- 36
Description
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](https://developer.android.com/about/versions/11/privacy/storage) stuff it would be helpful if the sdk supported content uris. [This](https://github.com/square/okhttp/issues/3585#issuecomment-327319196) 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
Contributor guide
Assessment
This issue has not been assessed yet.