How to do image file upload ??
{id: 'imagefile',type: 'file',name:'imagefile'}
and
$.ajax({ url : "/admin/submit", type: "POST", contentType: false, cache: false, processData:false, data : new FormData(this.swalForm), success: function(data, textStatus, jqXHR)
How to do image file upload ??
{id: 'imagefile',type: 'file',name:'imagefile'}and
$.ajax({ url : "/admin/submit", type: "POST", contentType: false, cache: false, processData:false, data : new FormData(this.swalForm), success: function(data, textStatus, jqXHR)