• I know it’s been asked many times but still – here I am, unable to upload any media above 100kb into media library, I’ve already tried turning off plugins and switching to default theme, editing ‘.htaccess’ files, ‘wp-config’, even ‘install’ in wp-admin. No results so far and I have no access to php.ini so are there any solutions (apart from contacting my host) that i could try ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hmm, 100kb is very small for a max upload limit. Could you try verifying it?

    $max_upload = (int)(ini_get('upload_max_filesize'));
    $max_post = (int)(ini_get('post_max_size'));
    $memory_limit = (int)(ini_get('memory_limit'));
    $upload_mb = min($max_upload, $max_post, $memory_limit);
    
    echo 'Limit set at: '.$upload_mb;
    Thread Starter mrp1nk

    (@mrp1nk)

    Where should I run this ? (using cpanel)

    Just create a new file called test.php and stick this in it.

    <?php // Shows Max upload size
    
    $max_upload = (int)(ini_get('upload_max_filesize'));
    $max_post = (int)(ini_get('post_max_size'));
    $memory_limit = (int)(ini_get('memory_limit'));
    $upload_mb = min($max_upload, $max_post, $memory_limit);
    
    echo 'Limit set at: '.$upload_mb;

    Then upload it to your host and navigate to it in your browser.

    Second thoughts, if your host has enabled display of the php.ini settings in cPanel you should be able to find them there too!

    Thread Starter mrp1nk

    (@mrp1nk)

    Using your php file I have result: Limit set at: 64 so that’s weird cause still i get stuck on 100% while uploading bigger file…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can't upload media above 100kb’ is closed to new replies.