From d933110669b9bc5dfef010c6ebe3a1226332d8ad Mon Sep 17 00:00:00 2001 From: Yasuo Ohgaki Date: Mon, 28 Jan 2002 10:26:35 +0000 Subject: [PATCH] Added common pitfall git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@68910 c90b9560-bf6c-de11-be94-00142212c4b1 --- features/file-upload.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/features/file-upload.xml b/features/file-upload.xml index 15bedbe3cd..e9a448f0be 100644 --- a/features/file-upload.xml +++ b/features/file-upload.xml @@ -1,5 +1,5 @@ - + Handling file uploads @@ -267,6 +267,11 @@ if (is_uploaded_file($HTTP_POST_FILES['userfile'])) { execution may be exceeded the value. Make sure to set max_execution_time large enough. + + If post_max_size is set too small, large file + cannot be uploaded. Make sure to set + post_max_size large enough. + Not validating which file you operate on may mean that users can access sensitive information in other directories.