I have a this part in Edit.chtml looks like
@using (@Html.BeginForm())
{
@Html.AntiForgeryToken()
@Html.ValidationSummary(true)
<article class="SearchBoxCon clearfix">
@if (Model.Entity.Document == null)
{
using (Html.BeginForm("AudioUpload", "Noun", FormMethod.Post, new { enctype = "multipart/form-data", NounId = Model.Entity.Id }))
{
<article class="BtnCon">
<article class="BrowseBtn">
<input type="file" value="Browse" name="file">
</article>
<article class="BrowseUpload">
<input type="submit" id="AudioUpload" value="AudioUpload">
</article>
</article>
}
}
else
{
<article class="inputBTn">
<input type="submit" value="Play">
<input type="submit" value="Delete">
</article>
}
</article>
<article class="inputBTn">
<input type="submit" value="Save">
</article>
<!-- submit btn ends here -->
@Html.ActionLink("Back to List", "Index", "Noun/Index", null, new { @class = "BackList" })
</article>
}
after browsing and upload the file , and click the upload it fire the edit posting action instead of the uploadaudio which looks like
[HttpPost]
public ActionResult AudioUpload(HttpPostedFileBase file , int NounId )
{