HttpContext.Current.Request.Files.Count
const formdata=new FormData(); formdata.append('myfile',file[0]); fetch('Render/Uploadhandler.ashx',{ Method: 'POST', body: formdata, }) .then(function(res)){ if(res.ok) { alert('success'); } else { alert('failure'); } })
public void ProcessRequest(HttpContext context) { if (context.Current.Request.Files.Count > 0) { // TO DO HERE } }
context.Current.Request
context.Request
files
(function(res))
enctype
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)