SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having an issue uploading a PDF to a document library. I've uploaded many different PDF's to many document libraries with no issues. This one PDF won't upload. I get a 404 error. It's 5 MB and opens in Reader fine. Any ideas what the issue could be? Thanks!

share|improve this question
up vote 1 down vote accepted

This error occurs when you are trying to upload large files in SharePoint, you need to configure few settings so that you can upload larger files.

Step 1: Central Administration -> Web Application General Settings -> Edit “Maximum Upload Size”:

Step 2: Edit web.config under "C:\inetpub\wwwroot\wss\VirtualDirectories[YourWebApplication]"

<httpRuntime executionTimeout=”999999″ maxRequestLength=”51200″ />

Step 3: Edit web.config under C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS

<location path=”upload.aspx”>
  <httpRuntime executionTimeout=”999999″ maxRequestLength=”2097151″ /> 

Step 4: Add this lines to web.config under C:\inetpub\wwwroot\wss\VirtualDirectories[YourWebApplication] (If you get 404 error after file upload)

              <requestLimits maxAllowedContentLength=”52428800″/>
share|improve this answer
Ah, step #4 did it for me. Thanks! – Ross Jun 20 '12 at 23:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.