UploadFile()

  • Thread starter Thread starter Bob Allen
  • Start date Start date
B

Bob Allen

I am working on using the webclient.uploadfile
method.byte[] responseArray = myWebClient.UploadFile(sPath,"POST",sFile);

This works fine most of the time but from what i can tell it will not work
with files larger than about 3 meg in size. This happens on both win 2003
server and xp pro. Any ideas on what setting i need to change to allow
larger files to come across?

Thanks,
Bob;
 
Bob said:
I am working on using the webclient.uploadfile
method.byte[] responseArray =
myWebClient.UploadFile(sPath,"POST",sFile);

This works fine most of the time but from what i can tell it will not
work with files larger than about 3 meg in size. This happens on both
win 2003 server and xp pro. Any ideas on what setting i need to
change to allow larger files to come across?

Are you posting to ASP.NET pages or HttpHandlers? By default, ASP.NET
limits the size of a POST body to 4 MB.

Cheers,
 
Back
Top