Skip to content

Commit

Permalink
Merge pull request bigbluebutton#7800 from pedrobmarin/caption-file-c…
Browse files Browse the repository at this point in the history
…ontent-type

Fix on getting caption file content type
  • Loading branch information
ritzalam authored Jul 17, 2019
2 parents d5b1d6a + 517e252 commit bd3ac15
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit bd3ac15

Please sign in to comment.