WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] WordPress File Upload "Crunching" Solution (Windows Server) (2 posts)

  1. kdatasystems
    Member
    Posted 5 months ago #

    I recently experienced the WordPress Media Library "crunching" problem that has already been discussed and addressed many times on this forum. The typical solution is to increase the "post_max_size" and "upload_max_filesize" found in the site's PHP.ini file, but in my case I had to take things even one step further. My installation is running on a Windows Server and by default IIS7 also has a security limitation on the file upload size (around 28.6 MB). To correct the problem, I added a request filter to my website's web.config file and specified the maxAllowedContentLength value (in bytes). For example:

    <system.webServer>
      <security>
        <requestFiltering>
          <requestLimits maxAllowedContentLength="157286400" />
        </requestFiltering>
      </security>
    </system.webServer>

    I didn't see this solution posted in the forum so I submitted it hoping to help someone else.

  2. kdatasystems
    Member
    Posted 5 months ago #

    Solution posted above.

Reply

You must log in to post.

About this Topic