fix: support multimedia media types for file upload (#4705)

This commit is contained in:
kyle
2018-07-07 02:36:48 -05:00
committed by GitHub
parent 8f65483510
commit 4055f51b93

View File

@@ -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) {