Maximum upload size for file is not working
In Drupal 7 you can achieve by using .htaccess


In your .htaccess file:


php_value post_max_size 8M
php_value upload_max_filesize 8M


Check this link for more information