From edb932b5118e55d3db40b537b4e1e0cb58200a63 Mon Sep 17 00:00:00 2001 From: Justin Rigon Date: Tue, 2 Jun 2020 02:43:26 +0200 Subject: [PATCH] fix upload file when array items are type=string format=binary (#6040) --- src/core/json-schema-components.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/json-schema-components.jsx b/src/core/json-schema-components.jsx index f44f0e93..421ac3fa 100644 --- a/src/core/json-schema-components.jsx +++ b/src/core/json-schema-components.jsx @@ -175,7 +175,7 @@ export class JsonSchema_array extends PureComponent { const schemaItemsSchema = schema.getIn(["items", "schema"]) let ArrayItemsComponent let isArrayItemText = false - let isArrayItemFile = schemaItemsType === "file" ? true : false + let isArrayItemFile = (schemaItemsType === "file" || (schemaItemsType === "string" && schemaItemsFormat === "binary")) ? true : false if (schemaItemsType && schemaItemsFormat) { ArrayItemsComponent = getComponent(`JsonSchema_${schemaItemsType}_${schemaItemsFormat}`) } else if (schemaItemsType === "boolean" || schemaItemsType === "array" || schemaItemsType === "object") {