From f84d16dbbf9943a2e60ba3c96750f33cfd3d9549 Mon Sep 17 00:00:00 2001 From: Edgar Jonas <73535889+EdgarJMesquita@users.noreply.github.com> Date: Thu, 5 Dec 2024 14:52:03 -0300 Subject: [PATCH] fix no permission for sourceURL on iOS 18+ --- ios/src/ImageCropPicker.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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