Support » Fixing WordPress » Uploading pictures to the Media Library: “Specified file failed upload test.”

  • I am on WP 5.1.1. I changed my domain this week and lost most (but not all) uploaded pictures in the Media Library. When I try to re-upload them I get, “Specified file failed upload test.”

    I’ve enabled the following settings in wp-config.php but am not seeing any debug output in debug.log:
    define(‘WP_DEBUG’, true); define( ‘WP_DEBUG_LOG’, true ); define( ‘WP_DEBUG_DISPLAY’, true );

    There’s also no debug output in either the Apache or PHP error logs.

    I’ve run Health Check and disabled all plugins but it’s still doing it. I’ve installed mod_security but tried the same with SecRuleEngine Off. I’ve installed Wordfence as well but it was disabled during the Health Check test.

    I tried this in the .htaccess, no good:
    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>

    Also, the browser uploader option silently fails. Tried the WP Health plugin and it says everything is good.

    The wp-content/uploads directory’s permissions are 750. Tried 755.

    This may or may not be important: My WP install is linked to my WP account. I wonder if the domain name change boogered something up.

    What else can I look at?

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Uploading pictures to the Media Library: “Specified file failed upload test.”’ is closed to new replies.