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!


1 Answer 1


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″/>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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