why can't import xml file which is bigger than 2M?

January 17, 2015 2.8k views

In my /etc/php5/apache2/php.ini file:

and i test it with

echo phpinfo();
The result is postmaxsize=10M.

When i import a 3.5M xml file,error message :

Sorry, there has been an error.
The uploaded file exceeds the uploadmaxfilesize directive in php.ini.

How to fix it ?

3 Answers

post_max_size is not the same as upload_max_filesize.

think woet , maxfileuploads is not the same as uploadmaxfilesize too , problem solved after change
uploadmaxfilesize=10 .

Have another answer? Share your knowledge.