From 04d397a900d8464133b526873793b89c71adc041 Mon Sep 17 00:00:00 2001 From: GuiLeme Date: Fri, 25 Nov 2022 11:02:51 -0300 Subject: [PATCH] [fix-check-mime-insert-document] - fix error on uploader --- .../components/presentation/presentation-uploader/service.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bigbluebutton-html5/imports/ui/components/presentation/presentation-uploader/service.js b/bigbluebutton-html5/imports/ui/components/presentation/presentation-uploader/service.js index f640a5e80d..971a83af15 100644 --- a/bigbluebutton-html5/imports/ui/components/presentation/presentation-uploader/service.js +++ b/bigbluebutton-html5/imports/ui/components/presentation/presentation-uploader/service.js @@ -107,7 +107,8 @@ const observePresentationConversion = ( if (doc.temporaryPresentationId !== temporaryPresentationId && doc.id !== tokenId) return; - if (doc.conversion.status === 'FILE_TOO_LARGE' || doc.conversion.status === 'UNSUPPORTED_DOCUMENT' || doc.conversion.status === 'CONVERSION_TIMEOUT') { + if (doc.conversion.status === 'FILE_TOO_LARGE' || doc.conversion.status === 'UNSUPPORTED_DOCUMENT' + || doc.conversion.status === 'CONVERSION_TIMEOUT' || doc.conversion.status === "IVALID_MIME_TYPE") { Presentations.update({id: tokenId}, {$set: {temporaryPresentationId, renderedInToast: false}}) onConversion(doc.conversion); c.stop();