From 93f6503bac6a6080eeffb9a73c7688e94db88877 Mon Sep 17 00:00:00 2001 From: dan Date: Mon, 27 Apr 2020 22:23:54 -0600 Subject: [PATCH] Change mp3 mime type to audio/mpeg --- .../popups/add-sermon-popup/add-sermon-popup.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Client/src/app/components/popups/add-sermon-popup/add-sermon-popup.component.ts b/Client/src/app/components/popups/add-sermon-popup/add-sermon-popup.component.ts index 788a8dd..81ffd16 100644 --- a/Client/src/app/components/popups/add-sermon-popup/add-sermon-popup.component.ts +++ b/Client/src/app/components/popups/add-sermon-popup/add-sermon-popup.component.ts @@ -88,7 +88,8 @@ export class AddSermonPopupComponent implements OnInit { if (this.sermonFile == null){ this.errorMessages.push("Please add a sermon MP3 file"); } - if (this.sermonFile != null && this.sermonFile.type != 'audio/mp3'){ + if (this.sermonFile != null && this.sermonFile.type != 'audio/mpeg'){ + this.errorMessages.push("File must be a MP3"); } if (this.errorMessages.length > 0){ this.updateAddButton(true); return; }