Open suraj092kumar opened 6 years ago
I got this too, looks like for iOS only the device-absolute-file-location is being returned
Worked around by appending a file URI
this.imagePicker.getPictures(options).then(
res => {
for (let i = 0; i < res.length; i++) {
console.log('Image URI: ' + res[i]);
let fullPath;
if (this.plt.is('ios')) {
fullPath = 'file://' + res[i];
} else {
fullPath = res[i];
}
Hey, it seems we have the same issue, do you have any robust solution for this? Because it will bug in older version of iOS which already have file://...
Any idea?
@yoojene I tried this
if(ionic.Platform.isIOS()){
if(uri.indexOf('file://') == -1){
uri = 'file://'+uri;
}
}
But I still have a blank image on iOS 11 when I tried to pass the uri to $jrCrop :/
I will dig deeper on this because the same code works great on Android...
on selecting image in ios getting FileError code: 5 message: "ENCODING_ERR"