php file upload error of 1 - What is correct way to use php_ini?
问题 I'm having issues uploading a pdf to my server. The upload_max_filesize is 2M and the file(s) are more then that, around 4M. I found a post with a similar issue to mine here $_FILE upload large file gives error 1 even though upload_max_size is bigger than the file size What I can gather from php.net for the correct usage of ini_set commands is this, which I am currently using. ini_set('upload_max_filesize', 100000000); ini_set('post_max_size', 110000000); ini_set('memory_limit', 120000000);