Skip to content

Commit

Permalink
bugfix/FS-11531 - registeredTypeIdentifiers updated as first prevent …
Browse files Browse the repository at this point in the history
…to upload .low files (#79)
  • Loading branch information
omertestrail authored Apr 24, 2024
1 parent 6a62b51 commit 23c9e78
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,13 @@ private extension ImagePickerUploadController {
if registeredTypeIdentifiers.contains(AVFileType.jpg.rawValue) {
typeIdentifier = AVFileType.jpg.rawValue
} else {
typeIdentifier = registeredTypeIdentifiers.last
typeIdentifier = registeredTypeIdentifiers.first
}
case .current:
if registeredTypeIdentifiers.contains(AVFileType.heic.rawValue) {
typeIdentifier = AVFileType.heic.rawValue
} else {
typeIdentifier = registeredTypeIdentifiers.last
typeIdentifier = registeredTypeIdentifiers.first
}
}

Expand Down

0 comments on commit 23c9e78

Please sign in to comment.