Skip to:
Content
Pages
Categories
Search
Top
Bottom

Getting ”Specified file failed upload test” Error When Uploading Avatar


  • Luca Foss
    Member

    @luca-foss

    Hello.

    I’ve been doing research into this and I’m finding that many have had issues with the function wp_handle_upload(). One notable issue is that it would produce this error, but the file will be uploaded to the directory anyway…and the same thing happened with me. The avatar is uploaded to the directory, but I still get the error message. Any idea on what could be causing this and how to solve?

    FYI..I just found notes on this piece of code in the file.php folder…it says that “A properly uploaded file will pass this test. There should be no reason to override this one.”

    `if ( $test_upload && ! @ is_uploaded_file( $file ) )
    return call_user_func($upload_error_handler, $file, __( ‘Specified file failed upload test.’ )); `

    Not sure what would be considered an improper loaded file.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Getting ”Specified file failed upload test” Error When Uploading Avatar’ is closed to new replies.
Skip to toolbar