In my /etc/php5/apache2/php.ini file: post_max_size=10M
and i test it with
<?php echo phpinfo(); ?> The result is post_max_size=10M.
When i import a 3.5M xml file,error message :
Sorry, there has been an error. The uploaded file exceeds the upload_max_filesize directive in php.ini.
How to fix it ?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
think woet , max_file_uploads is not the same as upload_max_filesize too , problem solved after change upload_max_filesize=10 .
max_file_uploads= 20
post_max_size
is not the same asupload_max_filesize
.