Krantikc commented on issue #577:
URL: 
https://github.com/apache/cordova-plugin-file/issues/577#issuecomment-1637082527

   Even I am facing similar issue. It throws **error code 2** while downloading 
the image/pdf file. It is failing while executing getDirectory command from 
**DirectoryEntry.js** (cordova-plugin-file) when targeted android API level to 
33.
   `exec(win, fail, 'File', 'getDirectory', [this.toInternalURL(), path, 
options])`. 
   
   I have also included required permissions in config.xml
   ```
   <config-file parent="/manifest" target="app/src/main/AndroidManifest.xml" 
mode="merge">
       <uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/>
       <uses-permission android:name="android.permission.READ_MEDIA_VIDEO"/>
       <uses-permission android:name="android.permission.READ_MEDIA_AUDIO"/>
   </config-file>
   ```
   Any solutions for this is appreciated. Thanks in advance !!


-- 
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]

Reply via email to