You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/12/16 14:57:25 UTC

[GitHub] [cordova-plugin-file] ragul02 opened a new issue #508: Cannot read PDF, .Docx from Internal Storage using cordova.file.externalRootDirectory for Android 11

ragul02 opened a new issue #508:
URL: https://github.com/apache/cordova-plugin-file/issues/508


   # Bug Report
   
   ## Problem
   Not able to read PDF and .Docx files from location file:///storage/emulated/0/Download/. Also not able to read files recursively inside directories, Returning array length of '0'.
   
   ### What is expected to happen?
   Should return all files under location file:///storage/emulated/0/Download/
   
   ### What does actually happen?
   Able to read only  .jpeg, .gif, .mp3, ,mp4 files.
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   
   
   ### Command or Code
   listFilesinFolder(folderName) {
   this.file.listDir(this.file.externalRootDirectory, 'Download'+'/').then((filesList) => {
         console.log('filesList-->', filesList);
         if (filesList.length !== 0) {      
           Promise.all(filesList.map(async (file) => {
             if (file.isDirectory) {
        console.log('Directory', file);
     this.listFilesinFolder(file.fullPath.substring(1));
             } else if (file.isFile === true) {
               console.log('file', file);
   }
   }
   })));
   }
   ### Environment, Platform, Device
   Android 11
   
   ### Version information
     "@ionic-native/file": "^5.36.0",
    "cordova-plugin-file": "^6.0.2",
   
   Included below in config.xml:
     <preference name="AndroidPersistentFileLocation" value="Internal" />
     <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
               <application android:networkSecurityConfig="@xml/network_security_config" />
               <application android:requestLegacyExternalStorage="true" android:usesCleartextTraffic="true" />
           </edit-config>
   


-- 
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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-file] subranil commented on issue #508: Cannot read PDF, .Docx from Internal Storage using cordova.file.externalRootDirectory for Android 11

Posted by GitBox <gi...@apache.org>.
subranil commented on issue #508:
URL: https://github.com/apache/cordova-plugin-file/issues/508#issuecomment-1021186628


   Does anyone have solution for that 
   


-- 
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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-file] ragul02 commented on issue #508: Cannot read PDF, .Docx from Internal Storage using cordova.file.externalRootDirectory for Android 11

Posted by GitBox <gi...@apache.org>.
ragul02 commented on issue #508:
URL: https://github.com/apache/cordova-plugin-file/issues/508#issuecomment-995897019


   Included below in config.xml:
   ```xml
   <preference name="AndroidPersistentFileLocation" value="Internal" />
     <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
               <application android:networkSecurityConfig="@xml/network_security_config" />
               <application android:requestLegacyExternalStorage="true" android:usesCleartextTraffic="true" />
           </edit-config>
   ```


-- 
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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-file] edvenkat commented on issue #508: Cannot read PDF, .Docx from Internal Storage using cordova.file.externalRootDirectory for Android 11

Posted by GitBox <gi...@apache.org>.
edvenkat commented on issue #508:
URL: https://github.com/apache/cordova-plugin-file/issues/508#issuecomment-999796696


   @ragul02  - i have tried but not working. any other idea


-- 
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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-file] subranil commented on issue #508: Cannot read PDF, .Docx from Internal Storage using cordova.file.externalRootDirectory for Android 11

Posted by GitBox <gi...@apache.org>.
subranil commented on issue #508:
URL: https://github.com/apache/cordova-plugin-file/issues/508#issuecomment-1021186628


   Does anyone have solution for that 
   


-- 
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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-file] erisu closed issue #508: Cannot read PDF, .Docx from Internal Storage using cordova.file.externalRootDirectory for Android 11

Posted by GitBox <gi...@apache.org>.
erisu closed issue #508:
URL: https://github.com/apache/cordova-plugin-file/issues/508


   


-- 
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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org