increase max upload limit in wordpress

前端 未结 8 1096
滥情空心
滥情空心 2020-12-29 17:00

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

相关标签:
8条回答
  • 2020-12-29 17:45

    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.

    0 讨论(0)
  • 2020-12-29 17:56

    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.

    0 讨论(0)
提交回复
热议问题