other data the from send form.submit() I first read the img tags value then converted it to a file , then added it to the form But its value in the controller is null
var imgs = document.getElementsByName('images');
var imagefiles = [];
var data = new FormData();
for (var i = 0; i < imgs.length; i++) {
var image = dataURLtoFile(imgs[i].src, FileName());
imagefiles.push(image);
}
data.append('files', imagefiles);
$("#Form").submit();
public ActionResult Create(ProductsModel model, HttpPostedFileBase[] files )
{}