Skip to content

Commit 5b69fbb

Browse files
committed
Remove image files from downloaded MIME types
1 parent e4d36c4 commit 5b69fbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apple/RNCWebViewImpl.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,6 +1016,7 @@ - (NSString *)fileExtensionFromBase64String:(NSString *)base64String {
10161016
@"image/png": @"png",
10171017
@"image/jpeg": @"jpg",
10181018
@"image/gif": @"gif",
1019+
@"image/svg+xml": @"svg",
10191020
@"application/pdf": @"pdf",
10201021
@"text/plain": @"txt",
10211022
@"application/json": @"json",
@@ -2126,7 +2127,6 @@ - (BOOL)isDownloadableFileURL:(NSURL *)url {
21262127

21272128
NSString *extension = [url.pathExtension lowercaseString];
21282129
NSSet *downloadableExtensions = [NSSet setWithObjects:
2129-
@"jpg", @"jpeg", @"png", @"gif", @"bmp", @"webp", @"svg", // Images
21302130
@"pdf", @"doc", @"docx", @"xls", @"xlsx", @"ppt", @"pptx", // Documents
21312131
@"txt", @"rtf", @"csv", @"json", @"xml", // Text files
21322132
@"zip", @"rar", @"7z", @"tar", @"gz", // Archives

0 commit comments

Comments
 (0)