mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
ab1d417e55
commit
0ee4823f71
@ -124,7 +124,7 @@ function wp_handle_upload( &$file, $overrides = false ) {
|
|||||||
|
|
||||||
// A non-empty file will pass this test.
|
// A non-empty file will pass this test.
|
||||||
if ( $test_size && !($file['size'] > 0 ) )
|
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.
|
// A properly uploaded file will pass this test. There should be no reason to override this one.
|
||||||
if (! @ is_uploaded_file( $file['tmp_name'] ) )
|
if (! @ is_uploaded_file( $file['tmp_name'] ) )
|
||||||
|
Loading…
Reference in New Issue
Block a user