Skip to content

fix no permission for sourceURL on iOS 18+ #2113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ios/src/ImageCropPicker.m
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down