Browse Source

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

bubble
kyle 6 years ago
committed by GitHub
parent
commit
4055f51b93
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      src/core/plugins/oas3/components/request-body.jsx

+ 6
- 1
src/core/plugins/oas3/components/request-body.jsx 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) {


Loading…
Cancel
Save