-
Notifications
You must be signed in to change notification settings - Fork 88
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
How to read a shared file #18
Comments
I know this is quite late, but did you manage to find a solution for it? Stuck at this for a couple of days, any help would be appreciated. |
Nope, I just stopped trying |
I am just going to type this out here if anyone is still trying to find a solution. What I've done is absolute jank and I don't understand why it works but it does. It is clear the Android doesn't let the file be read by any app willy nilly. Which is why I believe only the app to which the data is sent is allowed to read the file, and why data must be read using JS. I maybe wrong, but this is my hypothesis. When my component is called, I convert the
Now I can use this base64 data to basically 'read' the file and save it elsewhere. Here is what I am doing in my backend with PHP (CI4)
Again, this isn't really the best solution, but this is how I've been able to get this to work. If anyone else is able to find a better solution, please do let me know. |
Hello,
First of all,thank you for this plugin, works flawlessly. I was just guessing how can I access a file that has been sent to my application. I tried to use the file cordova plugin, trying to open the path that I receive on the intent , but I'm unable to access the contents, probably because lack of permissions. Is there any other way of doing this ?
Thanks in advance
The text was updated successfully, but these errors were encountered: