You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/09/27 11:50:24 UTC

[GitHub] [cordova-plugin-file] azizbohra opened a new issue #350: Critical Issue: not working with external sdcard on phones like Samsung A7, Huawei etc

azizbohra opened a new issue #350: Critical Issue: not working with external sdcard on phones like Samsung A7, Huawei etc
URL: https://github.com/apache/cordova-plugin-file/issues/350
 
 
   # Bug Report
   Critical Issue. Need a solution. Please help me guys.
   
   ## Problem
   This plugin works perfectly with internal storage. But on some of the smartphones like Samsung A7 & one Huawei, it is not working with the external sdcard. Even after giving external storage path, it is always searching on internal storage.
   
   ### What is expected to happen?
   It should work with internal storage as well as external sdcard storage
   
   
   ### What does actually happen?
   Not working with external sdcard storage. Even after giving external storage path,  it is always searching on internal storage.
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   I have tested this plugin on Ionic1 project. Mount sdcard on your device. Check any file which exists on sdcard ($cordovaFile.checkFile), it will through error code 1 NOT_FOUND_ERR. Now copy same file on internal storage, it will work as expected. Because it is searching file only on internal storage not on external storage. 
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   $cordovaFile.checkFile('file://sdcard/', "image.jpeg")
         .then(function (success) {
           // success
         }, function (error) {
           // error it will through error code 1 NOT_FOUND_ERR
         });
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
    Ionic1
   Samsung A7, Huawei

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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