Viewing 2 replies - 1 through 2 (of 2 total)
  • Alwyn Botha

    (@123milliseconds)

    Thread Starter i_banks

    (@i_banks)

    Well, I’m using a social networking plugin that uploads an image file to a file directory. The plugin itself uses the function like this:

    wp_handle_upload( $file['file'], array( 'action'=> 'bp_avatar_upload' ) );

    And I’m getting an error message when I upload the file saying:
    “Upload Failed! Error was: Specified file failed upload test.”

    So I located the function and found it in wp-admin/includes/file.php, and I found the line that’s producing the error..

    if ( $test_upload && ! @ is_uploaded_file( $file['tmp_name'] ) )
    		return call_user_func($upload_error_handler, $file, __( 'Specified file failed upload test.' ));

    and this is where I’m stuck..

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is wp_handle_upload() deprecated?’ is closed to new replies.