Skip to content

Commit

Permalink
Fix stream content type (#1026)
Browse files Browse the repository at this point in the history
* Add more file logs

* Add content type to creator node
  • Loading branch information
raymondjacobson committed Nov 2, 2020
1 parent e69c724 commit 39e13a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion creator-node/src/fileManager.js
Expand Up @@ -341,7 +341,7 @@ const trackFileUpload = multer({
req.logger.info(`Mimetype: ${file.mimetype}`)
cb(null, true)
} else {
req.fileFilterError = `File type not accepted. Must be one of [${ALLOWED_UPLOAD_FILE_EXTENSIONS}], got ${fileExtension}`
req.fileFilterError = `File type not accepted. Must be one of [${ALLOWED_UPLOAD_FILE_EXTENSIONS}] with mime type matching ${AUDIO_MIME_TYPE_REGEX}, got file ${fileExtension} with mime ${file.mimetype}`
cb(null, false)
}
}
Expand Down
1 change: 1 addition & 0 deletions creator-node/src/routes/tracks.js
Expand Up @@ -561,6 +561,7 @@ module.exports = function (app) {

req.params.CID = multihash
req.params.streamable = true
res.set('Content-Type', 'audio/mpeg')
next()
}, getCID)

Expand Down

0 comments on commit 39e13a8

Please sign in to comment.