How to make upload file in ASP.NET Core?
any tutorial on how to make upload file in ASP.NET Core...via html, javascript, c# (backend code)..
6 Replies
Upload files in ASP.NET Core
How to use model binding and streaming to upload files in ASP.NET Core MVC.
There's an entire MSDN article on this
IFormFile is probably the easiest way to do it
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
In case you did not read the docs:
https://docs.microsoft.com/en-us/aspnet/core/mvc/models/file-uploads?view=aspnetcore-6.0
Client Code:
ServerCode:
The field's name in the body when doing the POST, needs to match the binded field in the Controler's Action
https://media.discordapp.net/attachments/569261465463160900/1001188081069735936/unknown.png
Upload files in ASP.NET Core
How to use model binding and streaming to upload files in ASP.NET Core MVC.
TIL there's a tag for this, this must be a super regular question lol
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View