A helpful pointer for a possible cause of this error.

git-svn-id: http://svn.automattic.com/wordpress/trunk@5565 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2007-05-27 22:08:42 +00:00
parent ab1d417e55
commit 0ee4823f71

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