Skip to content

Commit

Permalink
Add iOS audio MIME types
Browse files Browse the repository at this point in the history
  • Loading branch information
adamski committed Dec 11, 2017
1 parent 40eb729 commit 8023002
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions RNMail/RNMail.m
Original file line number Diff line number Diff line change
Expand Up @@ -113,18 +113,18 @@ + (BOOL)requiresMainQueueSetup
mimeType = @"application/zip";
} else if ([attachmentType isEqualToString:@"text"]) {
mimeType = @"text/*";
} else if ([attachmentType isEqualToString:@"mp3"]) {
mimeType = @"audio/mpeg";
} else if ([attachmentType isEqualToString:@"wav"]) {
mimeType = @"audio/wav";
} else if ([attachmentType isEqualToString:@"aiff"]) {
mimeType = @"audio/aiff";
} else if ([attachmentType isEqualToString:@"flac"]) {
mimeType = @"audio/flac";
} else if ([attachmentType isEqualToString:@"ogg"]) {
mimeType = @"audio/ogg";
} else if ([attachmentType isEqualToString:@"xls"]) {
mimeType = @"application/vnd.ms-excel";
} else if ([attachmentType isEqualToString:@"mp3"]) {
mimeType = @"audio/mpeg";
} else if ([attachmentType isEqualToString:@"wav"]) {
mimeType = @"audio/wav";
} else if ([attachmentType isEqualToString:@"aiff"]) {
mimeType = @"audio/aiff";
} else if ([attachmentType isEqualToString:@"flac"]) {
mimeType = @"audio/flac";
} else if ([attachmentType isEqualToString:@"ogg"]) {
mimeType = @"audio/ogg";
} else if ([attachmentType isEqualToString:@"xls"]) {
mimeType = @"application/vnd.ms-excel";
}
[mail addAttachmentData:fileData mimeType:mimeType fileName:attachmentName];
}
Expand Down

0 comments on commit 8023002

Please sign in to comment.