Support » Developing with WordPress » HTTP error – Uploading large videos

  • Resolved tamarazambrana



    I have a problem uploading large videos to WordPress, what is stranger is that there are sites from which I get the error(my office, hom, etc.) and others don’t(others offices).

    1. define (‘WP_MEMORY_LIMIT’, ‘512M’); (wp-config.php)
    2. I tested the filter ‘wp_image_editors’
    4. I did tests with different Browsers and erasing the cache.
    5. I did tests with simple names to avoid errors in this.
    6. I did tests with another template and deactivating all plugins.
    7. I did tests with this configuration in .htaccess:

    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off

    8. I did tests with this configuration in functions.php:

    add_filter( 'wp_image_editors', 'change_graphic_lib' );
    function change_graphic_lib($array) {
      return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );

    9. My php.ini:

    memory_limit = 516M
    upload_max_filesize = 516M
    max_input_time = 300
    max_execution_time = 300
    post_max_size = 516M

    I talked to my hosting provider and he says the problem is not with the Hosting if I’ve already been able to upload videos from somewhere.


Viewing 2 replies - 1 through 2 (of 2 total)
  • It’s important for the debug of issues to know exactly what the response headers from the upload attempt are in order to determine the cause. You can find response headers using Chrome and Ctrl + Shift/Option + I to open Developer Tools, then attempt the upload and go to Network panel and click the upload request, which appears as a xhr request to /wp-admin/async-upload.php. The response you tipically get for a success upload is:
    Request Method: POST
    Status Code: 200
    Then to the response tab you should see the json response to the upload like:
    I removed the rest of the request for practical reasons, but here comes information about the error. If you dont have a response, at least you have a Status Code that’s what the web server responds.

    Thread Starter tamarazambrana


    After much searching I have a solution. The website is in a domain that I only use for websites in development and didn´t have the SSL certificate . Changing the website from http to https, I could upload the videos.

    I never thought that this could be the problem because I didn’t always get the error, it was depended on the file size and upload speed.

    I hope this solution helps someone

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘HTTP error – Uploading large videos’ is closed to new replies.