cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Taras Kravchuk (JIRA)" <>
Subject [jira] [Created] (CB-11842) Files with complex names cannot be resolved
Date Tue, 13 Sep 2016 16:49:20 GMT
Taras Kravchuk created CB-11842:

             Summary: Files with complex names cannot be resolved
                 Key: CB-11842
             Project: Apache Cordova
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Plugin File
         Environment: Android
            Reporter: Taras Kravchuk
            Priority: Minor

I have photos on my android device named like this (don't ask why): ""

If I use camera plugin to get such file, using code: 
  , onFail, {
                quality: 75,
                sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
                encodingType: Camera.EncodingType.PNG,
                targetHeight: 1000,
                saveToPhotoAlbum: false,
                mediaType: Camera.MediaType.PICTURE
Image is copied into my app cache folder with the same name, afterwards when I try to access
this image by
window.resolveLocalFileSystemURL(sourceFile, fileFound, fileNotFound); 
I always get file not found error.

On previous camera plugin version this file in cache folder was always renamed to "modified.png"
and so could be resolved successfully. But now after update I have such bug.

It is not critical since it works with normal file names, but it still can happen and I see
no workaround in this case.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message