Skip to content

iOS file path is never returned #284

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

Closed
ibnYusrat opened this issue Jul 22, 2019 · 1 comment
Closed

iOS file path is never returned #284

ibnYusrat opened this issue Jul 22, 2019 · 1 comment
Labels

Comments

@ibnYusrat
Copy link

Hi,

While the image does show up in the demo app, the object returned after selection doesn't contain the file path on iOS

This is the object I get:

{ "_observers": {}, "_options": { "keepAspectRatio": true, "autoScaleFactor": true }, "_ios": {} }

on Android, the _android property contains the path to the selected image.

I need it to upload user's profile photo to firebase. Can someone please suggest what am I doing wrong here?

@tgpetrov
Copy link
Contributor

@ibnYusrat
This has been commented on several issues. The library used for iOS doesn't provide us with a path that we can use. You can see some suggestions how to proceed here and here.

The reason there is no path is that the library we are using on iOS returns an asset which contains no path. As this has been commented on a few different thread, here are some suggestions how to proceed: idea 1 and idea 2

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

No branches or pull requests

2 participants