Question: how to pass file data from view to controller in mvc?
Answer: how to pass file from view to controller. $("#save"). click(function (event) { alert("hai"); $. ajax({ type: "POST", url: '/Home/Details', data: $('#photos').