“The uploaded file exceeds the upload_max_filesize directive in php.ini” Error
This error occurs when you try to upload a file that is larger than the maximum allowed size in your server’s PHP configuration.
- Increase the maximum file upload size by editing your server’s php.ini file. Locate or add the following lines and adjust the values as needed:
upload_max_filesize = 64M
post_max_size = 64M
Save the changes and restart your web server to apply the new settings.
- If you don’t have access to the php.ini file, you can try adding the following lines to your .htaccess file:
php_value upload_max_filesize 64M
php_value post_max_size 64M
Note that this method may not work on all server configurations.