I have set file filed with 25MB Maximum upload size. But when i upload more then 25mb file it is uploading. How to stop this.Can we create any custom module for file size.
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
Below module helps admin or user with similar admin privileges to change file upload limit on a website without changing php.ini file & restarting the server.