RaananW / PhoneGap-Image-Resizer

Providing an image resizer plugin for phonegap projects on both Android and iOS
93 stars 89 forks source link

Problem loading and writing files at file:/// #23

Open nkeeslin opened 8 years ago

nkeeslin commented 8 years ago

The methods getImageUsingOptions and saveImage don't work with files that are located at file:/// I am working on iOS 7.0.4 and trying to use this plugin to save and access pictures. For some reason, the url is reconstructed to be file:///file:/[rest of the url string], which of course has nothing. The way that I have found around it is to remove the file:/// before attempting to configure the url strings or search for the files.

RaananW commented 8 years ago

Does it work after you remove the duplicate file:/// ? I sadly don't have an iPhone to test on, but I can surely find the place where it adds the extra file string.

nkeeslin commented 8 years ago

Yea it works just fine if you remove file:/// before processing.