ソースを参照

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

bubble
kyle 6年前
committed by GitHub
コミット
4055f51b93
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更6行の追加1行の削除
  1. +6
    -1
      src/core/plugins/oas3/components/request-body.jsx

+ 6
- 1
src/core/plugins/oas3/components/request-body.jsx ファイルの表示

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


読み込み中…
キャンセル
保存