• Bartox

    (@bartox)


    Hi everyone,

    I know this topic has been dealed a lot of times. I have looked and tried many different ways : no success.

    I show you what I do not understand :

    Screen 1

    And here what I’d like to increase :

    Screen 2

    And i do have space with my host. How can I increase/change that 40MB limit ?

    Thanks all!
    Bartox

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator James Huff

    (@macmanx)

    Your first screenshot is your PHP memory limit, that’s separate from the upload limit.

    Here are three ways to increase PHP’s memory allocation:

    1. If you can edit or override the system php.ini file, increase the memory limit. For example, memory_limit = 128M

    2. If you cannot edit or override the system php.ini file, add php_value memory_limit 128M to your .htaccess file.

    3. If neither of these work, it’s time to ask your hosting provider to temporarily increase PHP’s memory allocation on your account. Keep in mind that most decent hosting providers allocate 32 MB to PHP under each account, and most decent hosting providers allow users to temporarily increase the memory allocation. If your hosting provider won’t accommodate you, perhaps it’s time to find a new hosting provider.

    (in the above examples, the limit is set to 128MB)

    Here are three ways you can increase the upload limit:

    1. If you can edit or override the system php.ini file, increase the maximum file and post sizes. For example, upload_max_filesize = 100M ; and post_max_size = 100M ;

    2. If you cannot edit or override the system php.ini file, add php_value upload_max_filesize 100M and php_value post_max_size = 100M to your .htaccess file.

    3. If neither of these work, it’s time to ask your hosting provider to increase the maximum file and post sizes on your account. Keep in mind that most decent hosting providers allow this, and If your hosting provider won’t accommodate you, perhaps it’s time to find a new hosting provider.

    (in the above examples, the limit is set to 100MB)

    Thread Starter Bartox

    (@bartox)

    Thanks, I’m gonna try the two first methods and contact my hosting provider if it still does not work. Thanks for the quick and great answer ??

    Thread Starter Bartox

    (@bartox)

    I tried and I can’t access the php.ini.
    When I changed the .htaccess, I had an internal error and the site crashed.

    So I’m gonna ask my host provider, but just one precision, I don’t get why I can’t upload more when I see I still have a lot of space provided by my host (screen from the panel of my host provider) :

    Pic 3

    Moderator James Huff

    (@macmanx)

    I don’t get why I can’t upload more when I see I still have a lot of space provided by my host

    Because your host has implemented a maximum upload size limit, most do. You may have tons of space left, but they don’t want you to upload files larger than a certain size.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Limit upload files’ is closed to new replies.