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:
Matt Mullenweg 2007-05-27 22:08:42 +00:00
parent 921a17e6a0
commit 824eb7db2a
1 changed files with 189 additions and 189 deletions

View File

@ -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'] ) )