Skip to content

Commit 4f36599

Browse files
authored
feat: Support for patch method (#4637)
There is nothing HTTP speaking to prevent a multipart request with PATCH semantics.
1 parent a4d907a commit 4f36599

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: components/upload/interface.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const UploadProps = {
7070
action: PropsTypes.oneOfType([PropsTypes.string, PropsTypes.func]),
7171
directory: PropsTypes.looseBool,
7272
data: PropsTypes.oneOfType([PropsTypes.object, PropsTypes.func]),
73-
method: PropsTypes.oneOf(tuple('POST', 'PUT', 'post', 'put')),
73+
method: PropsTypes.oneOf(tuple('POST', 'PUT', 'PATCH', 'post', 'put', 'patch')),
7474
headers: PropsTypes.object,
7575
showUploadList: PropsTypes.oneOfType([PropsTypes.looseBool, ShowUploadListInterface]),
7676
multiple: PropsTypes.looseBool,

0 commit comments

Comments
 (0)