File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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
7879Also 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 >
You can’t perform that action at this time.
0 commit comments