From 33d9daaee9e40bb05c018bcaa141c1a933dc3619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Prudent?= Date: Thu, 9 Sep 2021 16:45:08 +0200 Subject: [PATCH] Support for patch method There is nothing HTTP speaking to prevent a multipart request with PATCH semantics. --- components/upload/interface.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/upload/interface.tsx b/components/upload/interface.tsx index eb52d9cbee..ea98271766 100755 --- a/components/upload/interface.tsx +++ b/components/upload/interface.tsx @@ -70,7 +70,7 @@ export const UploadProps = { action: PropsTypes.oneOfType([PropsTypes.string, PropsTypes.func]), directory: PropsTypes.looseBool, data: PropsTypes.oneOfType([PropsTypes.object, PropsTypes.func]), - method: PropsTypes.oneOf(tuple('POST', 'PUT', 'post', 'put')), + method: PropsTypes.oneOf(tuple('POST', 'PUT', 'PATCH', 'post', 'put', 'patch')), headers: PropsTypes.object, showUploadList: PropsTypes.oneOfType([PropsTypes.looseBool, ShowUploadListInterface]), multiple: PropsTypes.looseBool,