Skip to content

Commit

Permalink
feat: Support for patch method (#4637)
Browse files Browse the repository at this point in the history
There is nothing HTTP speaking to prevent a multipart request with PATCH semantics.
  • Loading branch information
jprudent authored Sep 10, 2021
1 parent a4d907a commit 4f36599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/upload/interface.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4f36599

Please sign in to comment.