• Hello,
    I have increased max file uploads and post max upload from server main php.ini file with 12 MB but in wordpress admin panel it was showing Maximum size as 1 MB on Media upload and XML File upload

    Let me know how to fix this issue

Viewing 1 replies (of 1 total)
  • Nothings worse then getting an email about someone being unable to upload a 6mb .PDF because it “exceeds the upload file size limit”

    Here’s the fix – but important note: raising post_max_size increases the possibility of DoS attacks on your server:

    In functions.php add:

    @ini_set( 'upload_max_size' , '32M' );
    @ini_set( 'post_max_size', '32M');
    @ini_set( 'max_execution_time', '300' );
    define("WP_MEMORY_LIMIT",'32M');

    If that doesn’t work, it could be a apache restriction, in .htaccess add:

    php_value suhosin.post.max_vars 32000
    php_value suhosin.request.max_vars 32000

    If you’re still unable to it could be a php restriction, in php.ini add:

    ; Increase maximum post size
    post_max_size = 32M
    upload_max_filesize = 32M

    Obviously change the 32mb/32000kb as needed.

Viewing 1 replies (of 1 total)
  • The topic ‘Maximum file upload size not increasing’ is closed to new replies.