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/04/20 21:55:39 UTC

[GitHub] [cordova-plugin-file] amatrix85 opened a new issue #309: File.readAsDataURL promise does not fullfill

amatrix85 opened a new issue #309: File.readAsDataURL promise does not fullfill
URL: https://github.com/apache/cordova-plugin-file/issues/309
 
 
   <!--
   Please have a look at the issue templates you get when you click "New issue" in the GitHub UI.
   We very much prefer issues created by using one of these templates.
   -->
   
   ### Issue Type
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] Bug Report
   - [ ] Feature Request
   - [ ] Support Question
   
   ## Description
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   0
   
   Good daytime,
   
   I am writing an Ionic App which gets file from camera/gallery, writes it into folder (both work) and next must insert in into JSON structure (realized as interface, then converts with JSON.stringify). Right before sending query method reads file into string variable with following code (see below in apropriate section).
   
   File exists. Code worked fine just once. But other times promise never been resolved at all.
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   File.readAsDataURL(imagePath, imageName).then(res=>{
     console.log('It works.');
   },err=>{
     console.log(err);
   });
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   
   Variable imagePath is, for example, file:///data/user/0//files/2b0d8450-14dc-44b3-ab28-322c5c2859e4 and imageName is Pasport_Famil_I._stranicza_s_fotografiej.jpg
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   OpenJDK 8u191-b12-2ubuntu0.18.04.1
   Ionic 4.12
   Ionic file plugin 5.5.0
   cordova-plugin-file 6.0.1 
   
   ## Checklist
   <!-- Please check the boxes by putting an `x` in the `[ ]` like so: `[x]` -->
   
   - [x] I searched for already existing GitHub issues about this
   - [x] I updated all Cordova tooling to their most recent version
   - [x] 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


With regards,
Apache Git Services

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