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/02/23 17:25:35 UTC

[GitHub] [cordova-android] karimmahrouskamil opened a new issue #1169: Android pdf-file-upload ionic 6.13.0 , Cordova 10.0.0 is not working

karimmahrouskamil opened a new issue #1169:
URL: https://github.com/apache/cordova-android/issues/1169


   # Bug Report
   
   ## Problem
   pdf-file-upload ionic 6.13.0 , Cordova 10.0.0 is not working 
   ### What is expected to happen?
   resolve the native path from the filechooser plugin
   
   
   ### What does actually happen?
   
    after it resolve uriFromFileChooser parameter the error happen on step "2" callback error  it returns an error with **"uri"** on step 2 or
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   I have added permissions using Android permissions plugin 
   ```
    permissionsArr = [
       this.androidPermissions.PERMISSION.READ_EXTERNAL_STORAGE,
       this.androidPermissions.PERMISSION.WRITE_EXTERNAL_STORAGE,
       this.androidPermissions.PERMISSION.MANAGE_DOCUMENTS
     ]
   
   ```
   using the function below
   ```
    RequestPermissions() {
   
       this.androidPermissions.requestPermissions(this.permissionsArr).then((value: AndroidPermissionResponse) => {
   
         console.log(value);
         // console.log(value.hasPermission);
   
   
       },
         (error) => {
           console.log(error);
   
         });
     }
   ```
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
      ```
    //1 File Chooser
       this.fileChooser.open().then((uriFromFileChooser) => {
   
         console.log("SUCCESS - open method -1" + uriFromFileChooser);
         //2 FilePath
         this.filePath.resolveNativePath(uriFromFileChooser).then((nativePathResolvedFromFilePath) => {
           console.log("SUCCESS  - resolve native -2" + nativePathResolvedFromFilePath);
   
           // 3 
           this.base64.encodeFile(nativePathResolvedFromFilePath).then((base64File: string) => {
             console.log("SUCCESS  - encode to base 64 -3" + JSON.stringify(base64File));
   
             //4  send to backend API 
       
   
           }, (err) => {
             console.log("error from base 64  method - 3" + JSON.stringify(err));
           });
   
         }, (error) => {
           console.log("error from resolve native path method - 2" + JSON.stringify(error));
         })
   
       }, (err) => {
         console.log("error from open method - 1" + JSON.stringify(err));
   
       })
   ```
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
    ionic 6.13.0 , Cordova 10.0.0 
   
   
   ### Version information
   <!--
   What are relevant versions you are using? ionic 5 Cordova 10 Android API 30
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [ ] I searched for existing GitHub issues
   - [ ] I updated all Cordova tooling to most recent version
   - [ ] I included all the necessary information above
   


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



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


[GitHub] [cordova-android] breautek closed issue #1169: cordova-android pdf-file-upload ionic 6.13.0 , Cordova 10.0.0 is not working

Posted by GitBox <gi...@apache.org>.
breautek closed issue #1169:
URL: https://github.com/apache/cordova-android/issues/1169


   


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



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


[GitHub] [cordova-android] breautek commented on issue #1169: cordova-android pdf-file-upload ionic 6.13.0 , Cordova 10.0.0 is not working

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1169:
URL: https://github.com/apache/cordova-android/issues/1169#issuecomment-784432770


   File Chooser is not part of the Cordova codebase, so we cannot resolve any bugs related to this plugin.
   
   Related links:
   https://ionicframework.com/docs/native/file-chooser
   https://github.com/ihadeed/cordova-filechooser


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



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