Support » Plugin: WordPress Importer » Content-Length problem when importing media

  • As previously reported here, the WordPress Importer plugin does not properly handle importing images when the remote server uses HTTP Compression.

    This is because the Content-Length header that is sent by the web server does not match the filesize() on disk due to compression being used. The problem seems to only happen with smaller images where chunking is not required.

    I’m able to work around the problem by using the “wp_http_accept_encoding” filter, but I feel the plugin should do this automatically.

    I’ve written a detailed post about the problem.

  • The topic ‘Content-Length problem when importing media’ is closed to new replies.