My Problem
I want to upload files in WordPress with large file size, but have error "The uploaded file exceeds the upload_max_filesize directive in pnp.ini"
My Solution
Go to wordpress directory. for e.g:
cd /var/www/html/wordpress
Open file .htaccess
nano .htaccess
Add the following line at the bottom of the file:
php_value upload_max_filesize 256M
Then Save the changes.
That’s it! Increasing the upload_max_filesize value should automatically fix the error.
if not work, try to restart your web server (e.g. apache/nginx)
Top comments (0)