PHP cannot upload a large file to display Filecouldntbemoved. Is doing a file Upload shared site, want to achieve the file upload function through the following code: formenctypemultipartform-dataactionadd_file.phpmethodpostfieldsetlegendFilloutt is doing a file Upload shared site, want to achieve the file upload function through the following code:
It is found that when uploading a slightly larger File, the File couldn't be moved. but the database displays the File name, not the size. When a file larger than 8 MB is uploaded, the page does not respond. I searched the internet and found an article on "PHP Upload summary" on feino. The article points out that php file upload is affected by the following settings of php. ini:
Post_max_size
Upload_max_filesize
Max_execution_time
Memory_limit
So I found php. ini under/etc/php5/apache2/and searched post_max_size to change its default value to 125 M. I searched for upload_max_filesize and changed its default value to 125 M. then I saved it. Enter apache2ctl-k restart on the terminal to restart apache. The problem is solved! You can upload large files on the page ~
Terraform enctype = multipart/form-data action = add_file.php method = post fieldsetlegendFill out t...