WORDPRESS

  • MAXIMUM FILE UPLOAD SIZE – PHP.INI

    AUTHOR: // CATEGORY: Development, Open Source, Wordpress

    1 Comment

    On shared hosting/VPN or cloud if you’d like to increase the default max file upload size from 10M check our the below

    You need to set the value of upload_max_filesize and post_max_size in your php.ini (in the example below 40M is what I’ve set the max upload to, however you can change to whatever you’d like eg. 100M etc.):

    ; Maximum allowed size for uploaded files.
    upload_max_filesize = 40M
    
    ; Must be greater than or equal to upload_max_filesize
    post_max_size = 40M
    
    Or in the cursed .htaccess file 
    
    php_value upload_max_filesize 40M
    php_value post_max_size 40M

    Happy uploading ....