How to increase your file upload limit

Written by Andrew on August 17th, 2010

Some customers have been reporting problems with uploading large files via the Admin upload form.

The bad news  is that this is a limitation from your hosting provider and not from PHP Melody; so we can’t do much about it.

The good news is that with a few changes you may be able to alter/overwrite your hosting’s php configuration.

Method 1: using php.ini

Create a new file called php.ini and place it in your PHP Melody’s installation folder. Add these lines to your php.ini:

post_max_size = 100M
upload_max_filesize = 100M

Method 2: using .htaccess

PHP Melody already comes with a .htaccess file so be careful not to remove anything when adding those two lines to your existing .htacces:

php_value post_max_size 100M
php_value upload_max_filesize 100M

In both examples you can change 100M to your desired value.

If none of these methods work, you may want  to contact your host and ask for these values to be increased.

Enjoy! 😉

Questions? Feel free to leave a comment.

FaceBook Comments



10 Responses to “How to increase your file upload limit”

  • donatas says:

    Can you explain a little clearer?

  • Owain says:

    I changed the max and the post size and its staying at 9mb?

    • Andrew says:

      That’s strange. Have you also modified the maximum allowed uploads from the Admin Area > Settings page?

      If yes, please email customer support and I’ll take it from there.

      – Andrew

  • Owain says:

    i changed the max upload and post and everything it still says 9mb

  • gabi says:

    Hi,

    Regarding upload file size, I’ve modified .htacces file and added both php.ini and php5.ini inside site files and modified those variables from php.ini file from c:\xampp\php\php.ini but the limit remains 10M. In the admin page at PHP Configuration section, I see

    File Uploads on
    File Post Size (post_max_size) 100m
    Max File Size Upload (upload_max_filesize) 100m

    so is there a way to change this? I’m using PHPMelody 2.1

    • Andrew says:

      What you’ve done should be enough. Have you tried re-starting Apache & PHP?

      If yes, you might want to consult the xampp documentation.

Categories

Archive