PHP Local upload attachment successful, the server is unsuccessful, prompted not to select the file
1. I set the IIS6 upload file limit, aspmaxrequestentityallowed it to the desired value (20480000)
2.php.ini set as follows, but still upload not successful, the great God said where is wrong, or I am missing something (note: Less than 8MB can be uploaded successfully)
[PHP]
Max_execution_time = 600; Maximum execution time of each script, in seconds
Max_input_time = 600; Maximum amount of time each script may spend parsing request data
; max_input_nesting_level = 64; Maximum input variable nesting level
Memory_limit = 128M; Maximum amount of memory a script may consume (128MB)
Post_max_size = 50M
; Whether to allow HTTP file uploads.
File_uploads = On
; Temporary directory for HTTP uploaded files (would use system default if not
; Specified).
Upload_tmp_dir = "C:/php/tmp"
; Maximum allowed size for uploaded files.
Upload_max_filesize = 30M
; Maximum number of files that can is uploaded via a single request
Max_file_uploads = 30
------Solution--------------------
Can you provide a look at the error message of the prompt?
------Solution--------------------
What is the error message?
echo $_files[' file ' [' Error ']; Look
------Solution--------------------
Maybe you changed the file.
Restart IIS After you change
------Solution--------------------
Post your upload code to see
------Solution--------------------
Reference:
Quote: Reference:
What is the error message?
echo $_files[' file ' [' Error ']; Look
There is no error at all, the last will be not selected files, less than 8MB on the line
Less than 8M on the line? Obviously exceeded the limit. It's OK with the program, but there's a problem with the information in the program.
Changed the wrong configuration file. Use the Phpinfo function to see what the next configuration file is.