I can upload small size files with no problem,
but fail when the size is more than 1M.
What’s the matter?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You probably need to configure the
upload_max_filesizedirective, in yourphp.inifile : PHP will not accept an upload of a file that is bigger than what this directive defines.And note that you might also need to adjust
post_max_size— which defines the total size of data that can be POSTed (And files upload are sent via POST).You can also take a look at the Handling file uploads section of the manual, which can give you a couple of useful informations about files upload.