Title: upload_max_filesize strange problem
Last modified: September 1, 2016

---

# upload_max_filesize strange problem

 *  Resolved [cris720](https://wordpress.org/support/users/cris720/)
 * (@cris720)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/upload_max_filesize-strange-problem/)
 * I need to have 128 mb as upload_max_filesize in a wp website (the new template
   I’m installing requires it)
 * I set in the server (I have a dedicated server with whm) php.ini the max_upload_filesize
   =128 mb
 * The problem is that wordpress keeps to give me 10mb as max file size. I checked
   other wordpress installations on the same server and there I have the right value
   of 128 mb. So it seems that the problem is not on the server side and php.ini
 * I didn’t install myself this website, there was another webmaster at the time.
   So I’m wondering if on the wordpress installation there is a setting that is 
   overriding the php.ini settings.
    Any suggestion? Where could it be located this
   setting? I checked for the moment if there is a php.ini in the website root (
   and there isn’t) and the wp_config.php (and there is only a define(‘WP_MEMORY_LIMIT’,’
   96M’); )

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Jacob Peattie](https://wordpress.org/support/users/jakept/)
 * (@jakept)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/upload_max_filesize-strange-problem/#post-7655570)
 * Check the value of `post_max_size`. File uploads will be limited by the smallest
   of it and `upload_max_filesize`.
 * Speaking of which, double check you filesize setting. The correct name is `upload_max_filesize`.
 * You probably also need a memory limit higher than 128MB, with a bit of headroom.
 * I have to ask though, what template requires 128MB? That’s enormous.
 * Also, you’d probably be better off uploading the template/file via FTP. Increasing
   your server’s resource limits for a single upload is not necessarily a good idea.
 *  Thread Starter [cris720](https://wordpress.org/support/users/cris720/)
 * (@cris720)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/upload_max_filesize-strange-problem/#post-7655583)
 * Thanks for the reply
 * post_max_size is 128M
    upload_max_filesize is 128 m memory limit was 128M, I 
   put it at 150 M now
 * but if I go to wordpress/media/add new, it still give me 10M as max upload limit
 * Otherwise, if I go to another wp installation on the same dedicated server, in
   media I got the right value of 128M as max upload.
 * So what I’m trying to find is if it’s possible that in the wp installation some
   settings is overriding the php.ini settings of the server, and where I can find
   it.
 * Template name is Mr.Tailor. Yes I could try to upload via FTP but it’s still 
   an issue that I can’t change on the wp installation the upload limit on a size
   higher than 10 MB. I would like to fix this issue somehow.
 *  Thread Starter [cris720](https://wordpress.org/support/users/cris720/)
 * (@cris720)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/upload_max_filesize-strange-problem/#post-7655773)
 * Ok i fixed the issue, I write it, maybe it could help someone in the future.
 * The previous webmaster uploaded in the /wp-admin directory (and not in the website
   root, where I was searching) a php.ini file that was overriding the server settings.
   I deleted that php.ini file and it fixed the problem.
 *  [beartech](https://wordpress.org/support/users/beartech/)
 * (@beartech)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/upload_max_filesize-strange-problem/#post-8501440)
 * I had the same problemo. Did the above steps still didn’t work.
    Then I copied
   my public_html/php.ini to public_html/wp-admin and now it works. Hopefully this
   helps someone else.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘upload_max_filesize strange problem’ is closed to new replies.

## Tags

 * [upload_max_filesize](https://wordpress.org/support/topic-tag/upload_max_filesize/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [beartech](https://wordpress.org/support/users/beartech/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/upload_max_filesize-strange-problem/#post-8501440)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
