Skip to content

Commit db822d7

Browse files
authored
docs(upload): Clarify SaveUrl and RemoveUrl naming requirements (#1150)
1 parent 4f63cec commit db822d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/upload/overview.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ Steps 4 and 5 are optional, but strongly recommended.
5959
* Its argument should be `IFormFile` or `IEnumerable<IFormFile>`.
6060
* The Upload always sends files one by one, but both argument types can work.
6161
* The argument name (`FormData` request key) must match the Upload [`SaveField` parameter](#upload-parameters) value. By default, that is `files`.
62+
* The method name should match the last part of the `SaveUrl` value.
6263
* **Remove** action method
6364
* Its argument should be `string` or `IEnumerable<string>`.
6465
* The argument name (`FormData` request key) must match the Upload [`RemoveField` parameter](#upload-parameters) value. By default, that is `files`.
66+
* The method name should match the last part of the `RemoveUrl` value.
6567

6668
Both action methods should accept `POST` requests. Correct request routing depends on the application.
6769

0 commit comments

Comments
 (0)