Hi,
I want to display the existing files based on the value of the HttpPostedFileBase properties in my view model. How can I achieve this without using asynchronous uploading?
I tried what is written in this blog but whenever I save the form, the value of the files are lost.
Form:
@(Html.Kendo().Upload()
.Name("LogoImage")
.Multiple(false)
.Messages(m => m.Select("Upload"))
.Validation(validation => validation
.AllowedExtensions(new string[] { ".gif", ".jpg", ".png" })
.MaxFileSize(2097152)
)
)
View model:
public HttpPostedFileBase LogoImage { get; set; }