Skip to content

Commit 4055f51

Browse files
authored
fix: support multimedia media types for file upload (#4705)
1 parent 8f65483 commit 4055f51

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/core/plugins/oas3/components/request-body.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ const RequestBody = ({
3636
return null
3737
}
3838

39-
if(contentType === "application/octet-stream") {
39+
if(
40+
contentType === "application/octet-stream"
41+
|| contentType.indexOf("image/") === 0
42+
|| contentType.indexOf("audio/") === 0
43+
|| contentType.indexOf("video/") === 0
44+
) {
4045
const Input = getComponent("Input")
4146

4247
if(!isExecute) {

0 commit comments

Comments
 (0)