drogerie21 commented on issue #426:
URL:
https://github.com/apache/cordova-plugin-file/issues/426#issuecomment-878212878
> Hello, I was facing a similar problem, when I needed to read a file from
the storage of an Android device, the plugin returns null in the contents of
the file.
>
> The reason for this is the "partial" permission implemented in Android 11,
although the user gives the storage permission this always stays in "only
multimedia content".
>
> So what I did was send the user to the settings section of the app and
tell them to change the storage permission to "allow access to all files".
> And with that change I was already able to read the files in any directory
on the device on Android 11.
>
> Note:
> You need to implement this in your config.xml for the storage permission
to work well on Android 11
> ` <uses-permission
android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />`
>
> I hope and this will help you.
Unfortunately this is not working for me!
I try to write a file from a html input tag. This is working with eg files
from the Downloads-Folder. But it is not working with files from google drive.
Setting the permission to accal all files
("android.permission.MANAGE_EXTERNAL_STORAGE") does not change this behaviour.
I get this error message:
`DOMException: The requested file could not be read, typically due to
permission problems that have occurred after a reference to a file was
acquired.`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]