A helpful pointer for a possible cause of this error.
git-svn-id: https://develop.svn.wordpress.org/trunk@5565 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
921a17e6a0
commit
824eb7db2a
|
@ -124,7 +124,7 @@ function wp_handle_upload( &$file, $overrides = false ) {
|
|||
|
||||
// A non-empty file will pass this test.
|
||||
if ( $test_size && !($file['size'] > 0 ) )
|
||||
return $upload_error_handler( $file, __( 'File is empty. Please upload something more substantial.' ));
|
||||
return $upload_error_handler( $file, __( 'File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini.' ));
|
||||
|
||||
// A properly uploaded file will pass this test. There should be no reason to override this one.
|
||||
if (! @ is_uploaded_file( $file['tmp_name'] ) )
|
||||
|
|
Loading…
Reference in New Issue