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..