Getting Error Message with wp_handle_upload()…PLEASE HELP..
-
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?
I 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['tmp_name'] ) ) return call_user_func($upload_error_handler, $file, __( 'Specified file failed upload test.' ));
Not sure what would be considered an improper loaded file.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Getting Error Message with wp_handle_upload()…PLEASE HELP..’ is closed to new replies.