From 517e25290166ad6cb89a756da882102cc72e237d Mon Sep 17 00:00:00 2001 From: Pedro Beschorner Marin Date: Wed, 17 Jul 2019 18:47:31 +0000 Subject: [PATCH] Fix on getting caption file content type --- .../web/controllers/RecordingController.groovy | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/RecordingController.groovy b/bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/RecordingController.groovy index 88ba14f09a..c07f145d83 100755 --- a/bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/RecordingController.groovy +++ b/bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/RecordingController.groovy @@ -9,7 +9,6 @@ import org.bigbluebutton.api.ApiErrors import org.bigbluebutton.api.ApiParams import org.apache.commons.lang3.StringUtils import org.json.JSONArray -import org.springframework.web.multipart.commons.CommonsMultipartFile import org.apache.commons.lang.LocaleUtils class RecordingController { @@ -184,11 +183,7 @@ class RecordingController { def uploadedCaptionsFile = request.getFile('file') if (uploadedCaptionsFile && !uploadedCaptionsFile.empty) { - CommonsMultipartFile contentType = uploadedCaptionsFile.contentType - def fileContentType = null - if (contentType != null) { - fileContentType = contentType.getContentType() - } + def fileContentType = uploadedCaptionsFile.getContentType() log.debug("Captions content type: " + fileContentType) def origFilename = uploadedCaptionsFile.getOriginalFilename() def trackId = recordId + "-" + System.currentTimeMillis()