Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have written a component which posts binary data to a web page usinig HttpWebRequest, this works fine with any file types up to about 3.8mb. At that point the web page recieving the file refuses to read the data.

 

I have also tried this using a standard web page to post a file with a multipart/ form data and using the Request.Files collection to retrieve the data from the post, this also fails with file larger than about 3.8mb.

 

I have seen information relating to max http post size on unix based web servers, but can find no information on a limitation within IIS.

 

If anyone has any information relating to this 3.8mb limit I would be most greatfull.

 

 

:confused:

Posted

More on this problem from klepto:

the error I get within the Request.InputStream is [error: an exception of type: {System.Web.HttpException} occurred]. if the file is under 3.8 mb then this contains the incoming data stram handle. It feels like a transmition problem or at least a problem prior to the script being given the request data.

  • 2 months later...
Posted

Thanks for your help! :rolleyes: , once I found the solution it is verry simple.

 

Just add the following to your web.config or mod the settings in the machine.config.

 

<system.web>

<httpRuntime maxRequestLength="XXXXXX" />

</system.web>

 

where XXXXXX is the max size in byte for http file posts.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...