The uploaded file exceeds the upload_max_filesize directive in pnp.ini (wordpress)
Indra Wahyu
Posted on May 1, 2024
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)
Reference
π πͺ π
π©
Indra Wahyu
Posted on May 1, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.