upload_max_filesize error in php.ini

Make sure you edited the right php.ini file. Place a php file with phpinfo() in you webspace and check the values. There are possibly more than one, for cli and for web or different php versions.
Also check the post_max_size value in your php.ini, when you know it’s the correct one. Set it to 10MB as well and try again.