I'm using latest MVC version (17.2500.0.39)
of the uploader following the image preview sample https://ej2.syncfusion.com/aspnetmvc/Uploader/ImagePreview#/material.
Posted file works when I use the browse button, however, when I use the drag and drop feature I can see the image preview but no file data is posted, all I get is an empty "application/octet-stream" when checking System.Web.HttpContext.Current.Request.Files["Avatar_File"].
This is my setup:
Dictionary<string, object> htmlAttr = new Dictionary<string, object>();
htmlAttr.Add("name", "Avatar_File");
htmlAttr.Add("class", "form-control");
@Html.EJS().Uploader("uplAvatar").AutoUpload(false).Multiple(false).AllowedExtensions("image/*").Selected("OnFileSelect").HtmlAttributes(htmlAttr).Render()
I'm attaching the Javascript part for reference.
Attachment:
uploader_1b52143b.zip