Title: Limit upload files
Last modified: August 22, 2016

---

# Limit upload files

 *  [Bartox](https://wordpress.org/support/users/bartox/)
 * (@bartox)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/limit-upload-files/)
 * 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](http://olihart.lescigales.org/wp-content/uploads/2015/02/Screen-Shot-02-18-15-at-03.35-PM.png)
 * And here what I’d like to increase :
 * [Screen 2](http://olihart.lescigales.org/wp-content/uploads/2015/02/Screen-Shot-02-18-15-at-03.36-PM.png)
 * 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](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/limit-upload-files/#post-5804095)
 * 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](https://wordpress.org/support/users/bartox/)
 * (@bartox)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/limit-upload-files/#post-5804225)
 * 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](https://wordpress.org/support/users/bartox/)
 * (@bartox)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/limit-upload-files/#post-5804230)
 * 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](http://olihart.lescigales.org/wp-content/uploads/2015/02/Capture.png)
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/limit-upload-files/#post-5804240)
 * > 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/limit-upload-files/#post-5804240)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
