Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer

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”>
<system.web>
  <httpRuntime executionTimeout=”999999″ maxRequestLength=”2097151″ /> 
</system.web>

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

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

Your Answer

 
discard

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.