PhoneGap-Image-Resizer icon indicating copy to clipboard operation
PhoneGap-Image-Resizer copied to clipboard

Problem loading and writing files at file:///

Open nkeeslin opened this issue 10 years ago • 2 comments

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.

nkeeslin avatar Nov 06 '15 17:11 nkeeslin

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.

RaananW avatar Nov 06 '15 19:11 RaananW

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

nkeeslin avatar Nov 06 '15 19:11 nkeeslin