diff --git a/FIT5032-Assignment/Views/Home/ImageUpload.cshtml b/FIT5032-Assignment/Views/Home/ImageUpload.cshtml index 8ba25d1..cb4928e 100644 --- a/FIT5032-Assignment/Views/Home/ImageUpload.cshtml +++ b/FIT5032-Assignment/Views/Home/ImageUpload.cshtml @@ -4,7 +4,7 @@ } -@using (Html.BeginForm()) +@using (Html.BeginForm("ImageUpload", "HomeController", FormMethod.Post, new { enctype = "multipart/form-data" })) { @Html.AntiForgeryToken() @@ -23,7 +23,7 @@
@Html.LabelFor(model => model.imageFile, htmlAttributes: new { @class = "control-label col-md-2" })
- @Html.EditorFor(model => model.imageFile, new { htmlAttributes = new { @class = "form-control" } }) + @Html.ValidationMessageFor(model => model.imageFile, "", new { @class = "text-danger" })