diff --git a/ios/src/ImageCropPicker.m b/ios/src/ImageCropPicker.m index 9f20973f1..bda295f70 100644 --- a/ios/src/ImageCropPicker.m +++ b/ios/src/ImageCropPicker.m @@ -442,7 +442,7 @@ - (void) handleVideo:(AVAsset*)asset withFileName:(NSString*)fileName withLocalI completion([self createAttachmentResponse:[outputURL absoluteString] withExif:nil - withSourceURL:[sourceURL absoluteString] + withSourceURL:[sourceURL relativePath] withLocalIdentifier:localIdentifier withFilename:fileName withWidth:[NSNumber numberWithFloat:track.naturalSize.width] @@ -629,7 +629,7 @@ - (void)qb_imagePickerController: [selections addObject:[self createAttachmentResponse:filePath withExif: exif - withSourceURL:[sourceURL absoluteString] + withSourceURL:[sourceURL relativePath] withLocalIdentifier: phAsset.localIdentifier withFilename: [phAsset valueForKey:@"filename"] withWidth:imageResult.width @@ -700,7 +700,7 @@ - (void)qb_imagePickerController: [self processSingleImagePick:[UIImage imageWithData:imageData] withExif: exif withViewController:imagePickerController - withSourceURL:[sourceURL absoluteString] + withSourceURL:[sourceURL relativePath] withLocalIdentifier:phAsset.localIdentifier withFilename:[phAsset valueForKey:@"filename"] withCreationDate:phAsset.creationDate