Q:

wordpress media upload limit

In my local wordpress site i can just upload files with just 2Megabyte,i have increased the upload_max_filesize to 64Mb and restarted wamp but when i run <?php echo phpinfo()?> it show upload_max_filesize = 2M yet.nothing changed, what should i do to increase upload limit?
i also have visit so many post in stackoverflow and other forums like:increase-file-upload-size-for-media-in-wordpress

 and cannot change php upload size limit
but they didn't help me at all!

A:

I finally fixed my problem.
I was changing all the time the php.ini in the C:\wamp\bin\php\php5.4 folder but the right file was the php.ini of this folder C:\wamp\bin\apache\Apache2.3.14\bin .
and also I understand that for increasing max_file_uploads first must increase post_max_size, and max_file_uploads must be smaller or equal to the post_max_size, any other way the codes will be run with default size of post_max_size.
tnx all who helped me

