I have some ashx pages that handle uploading documents. This is working just fine for any employee running Windows 7 and IE8 but doesn't for our Windows XP IE8 employess. What is happening is that the HasEntityBody check is returning false preventing them
from successfully uploading the document. Does anyone know of something that would prevent this from working correctly? This used to work just fine on XP before October 2012 so my assumtion is some update or I.T. software is affecting it but I can't trace
down what.
jaaven
0 Points
1 Post
UploadHandler.ashx HttpWorkerRequest.HasEntityBody() issue
Jan 23, 2013 07:26 PM|LINK
Hi,
I have some ashx pages that handle uploading documents. This is working just fine for any employee running Windows 7 and IE8 but doesn't for our Windows XP IE8 employess. What is happening is that the HasEntityBody check is returning false preventing them from successfully uploading the document. Does anyone know of something that would prevent this from working correctly? This used to work just fine on XP before October 2012 so my assumtion is some update or I.T. software is affecting it but I can't trace down what.
public void ProcessRequest(HttpContext context) { byte[] filecontents = null; HttpWorkerRequest workerRequest = (HttpWorkerRequest)context.GetType().GetProperty("WorkerRequest", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(context, null); if (workerRequest.HasEntityBody()) { … } }Thanks, Joe