fix: support multimedia media types for file upload

This commit is contained in:
Kyle Shockey
2018-07-07 02:31:42 -05:00
parent 8f65483510
commit de0a77096a
@@ -36,7 +36,12 @@ const RequestBody = ({
return null
}
if(contentType === "application/octet-stream") {
if(
contentType === "application/octet-stream"
|| contentType.indexOf("image/") === 0
|| contentType.indexOf("audio/") === 0
|| contentType.indexOf("video/") === 0
) {
const Input = getComponent("Input")
if(!isExecute) {