diff --git a/Sources/Filestack/UI/Internal/Controllers/ImagePickerUploadController.swift b/Sources/Filestack/UI/Internal/Controllers/ImagePickerUploadController.swift index a0fb736..0790642 100644 --- a/Sources/Filestack/UI/Internal/Controllers/ImagePickerUploadController.swift +++ b/Sources/Filestack/UI/Internal/Controllers/ImagePickerUploadController.swift @@ -202,12 +202,13 @@ private extension ImagePickerUploadController { group.wait() - self.completionBlock?(urls) self.upload(urls: urls) } } func upload(urls: [URL]) { + completionBlock?(urls) + guard let uploader = uploader else { return } trackingProgress.update(tracked: uploader.progress, delay: 1)