I need to upload a PDF file to my wordpress site. When I go to Upload New Media, and try uploading it, it says
FileName.pdf
This applies to cPanel users only. I'm not sure about which versions of cPanel it will work with, but it works with the version 56.0.33.
Login to cPanel > Select PHP version > Switch To PHP Options > Click the greyed out number next to upload_max_filesize > Change > Save
I believe this makes a change to the server's php.ini file.
I'm running WHM / cPanel on a CloudLinux based server. I tried everything. The final solution for me was adding a php.ini file to the /wp-admin/ directory with the following;
memory_limit = 128M
upload_max_filesize = 32M
post_max_size = 32M
Keep in mind I previously tried a php.ini in the document root and the web root directories and those didn't fix the max upload limitation.