PHP Local upload attachment successful, the server is unsuccessful, prompted not to select files

Source: Internet
Author: User
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.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.