Why is IFormFile showing null, and how do I fix it? Why is IFormFile showing null, and how do I fix it? asp.net asp.net

Why is IFormFile showing null, and how do I fix it?


Your file input has a name attribute of "fileSelect". The name of your parameter to your action is "file". Make them match and it should work.


might sounds simple! but in addition to same //name// @model-view-controller, check the form.serialize(); caused me 24hrs to find this!