I'm trying to upload a file from my view to my controller, but the value is always null.
Controller:
public ActionResult Edit(AttachmentDto dto, HttpPostedFileBase UploadedFile)
Form Tag:
<form action="@Url.Action("Edit")" method="post" enctype="multipart/form-data">
Input Tag:
<input type="file" name="UploadedFile" id="File" />
There are few other inputs being passed into the controller that the dto is receiving, however the UploadedFile is always null? Am I missing something here?