Skip to content

Commit d083af2

Browse files
dimodidimodi
authored andcommitted
Update Upload overview.md
1 parent b8a972d commit d083af2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

components/upload/overview.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,17 @@ Steps 4 and 5 are optional, but strongly recommended.
6969
* The correct binding source attribute for the file name argument is `[FromForm]`. Set it explicitly if you are using an [`[ApiController]` attribute](https://learn.microsoft.com/en-gb/aspnet/core/web-api/).
7070
* Use the Upload [`OnRemove` event](slug:upload-events#onremove) to [send additional custom data with the file](slug:upload-events#send-custom-data-with-the-file) as an argument to the `Remove` controller method.
7171

72-
Both action methods must accept `POST` requests. Correct request routing depends on the application.
72+
Both action methods must accept `POST` requests.
7373

74-
The `UploadController` class below assumes that the project name and namespace is `TelerikBlazorUpload`.
74+
Request routing depends on the application and it outside the Upload component's scope. Normally, the following two statements in `Program.cs` are enough:
7575

76-
Make sure to enable controller routing in the app startup file (`Program.cs`). In this case, `app.MapDefaultControllerRoute();` is all that's needed.
76+
* `builder.Services.AddControllers();`
77+
* `app.MapDefaultControllerRoute();`.
7778

7879
Also check the [Upload Troubleshooting](slug:upload-troubleshooting) page.
7980

81+
The `UploadController` class below assumes that the project name and namespace is `TelerikBlazorUpload`.
82+
8083
>caption Sample Upload Controller
8184

8285
<div class="skip-repl"></div>

0 commit comments

Comments
 (0)