• When trying to upload anything in the media section, I get this error.

    “Specified file failed upload test.”

    Not sure what could be causing this. Any ideas?

    I’ve made a few changes to my site today, updated theme, cleaned up plugins and updated to PHP 7.3.

    Anyone encounter this before and know a quick fix?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    That’s not a core message, so it probably belongs to a plugin.

    Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    If you can install plugins, install “Health Check”: https://www.ads-software.com/plugins/health-check/ On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site. You can then use its admin bar menu to turn on/off plugins and themes one at a time.

    See https://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/

    This IS a core message from wp-admin/includes/file.php

    It is a core message, as @andreasmuench clarified, and I also hit it today on our dev site which was recently updated to PHP 7.3. Digging into the cause now.

    I’m having this same issue with our PHP 7.3 dev site. If I’m using PHP 5.6 I do not run into this issue. I’ve tested with turning off all plugins and even using the default theme, but still receive the same error message.

    Has anyone else found a fix or root cause for this error?

    Hi, the very same error has occurred at one of my sites. Deactivating everything didn’t help, we’re running the latest WP and PHP 7.2.4. Any solution?

    I was working on a custom plugin and ran into the same problem. There are a few things you might want to check.
    1) Make sure your php.ini set file_uploads=ON (.ini in different location depending on stack and configuration)
    2) Make sure your directory permissions are set properly. Try 750 or 770
    3) If you created your own custom plugin make sure the form element has the enctype=”multipart/form-data” attribute.
    4) Make sure the input type is set to single file upload for testing
    <input name=”my_image” id=”my_image” type=”file” value=”” aria-required=”true” required multiple=”false” />

    Hope this helps.

    I found I needed to update PHP to the latest 7.4 version

    Rolling Back from 7.3 to 5.6 didn’t solve the issue. Now what to do? I’m in trouble no files are being uploaded.

    I now u=installed PHP 7.4 and everything is running fine for me!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘“Specified file failed upload test” When uploading a file’ is closed to new replies.