Skip to content

Commit

Permalink
fix(ios, storage): handle nil file extension from ios14 M1 emulators (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxoos committed Dec 18, 2020
1 parent 50ecf38 commit e1eb992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/storage/ios/RNFBStorage/RNFBStorageCommon.m
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ + (NSString *)mimeTypeForPath:(NSString *)localFilePath {
(__bridge CFStringRef) [localFilePath pathExtension],
NULL);
CFStringRef mimeType = UTTypeCopyPreferredTagWithClass(UTI, kUTTagClassMIMEType);
CFRelease(UTI);
if (UTI) { CFRelease(UTI); }

if (!mimeType) {
return @"application/octet-stream";
Expand Down

1 comment on commit e1eb992

@vercel
Copy link

@vercel vercel bot commented on e1eb992 Dec 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.