Title: post_max_size being defined as smaller than upload_max_filesize
Last modified: August 19, 2016

---

# post_max_size being defined as smaller than upload_max_filesize

 *  [Mr. A](https://wordpress.org/support/users/amber-nagpal/)
 * (@amber-nagpal)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/post_max_size-being-defined-as-smaller-than-upload_max_filesize/)
 * Hello Friends!
    I have a problem when Import WordPress posts and other data using‘
   wordpress-importer’ it says:
 * “Sorry, there has been an error.
 * File is empty. Please upload something more substantial. This error could also
   be caused by uploads being disabled in your php.ini or by post_max_size being
   defined as smaller than upload_max_filesize in php.ini.”
 * I added this code in wp-config file, but it not doesn’t work, the code is:
    [
   define(‘post_max_size’, ’32M’); define(‘upload_max_filesize’, ’32M’);] what can
   I do? Thanks in advance

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

 *  Thread Starter [Mr. A](https://wordpress.org/support/users/amber-nagpal/)
 * (@amber-nagpal)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/post_max_size-being-defined-as-smaller-than-upload_max_filesize/#post-1785549)
 * I also ussed this code(in wp-config):
    define(‘WP_MEMORY_LIMIT’, ’64M’); ini_set(‘
   post_max_size’, ’50M’); ini_set(‘upload_max_filesize’, ’50M’);
 * please please reply fast
 * its very urgent
 *  Thread Starter [Mr. A](https://wordpress.org/support/users/amber-nagpal/)
 * (@amber-nagpal)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/post_max_size-being-defined-as-smaller-than-upload_max_filesize/#post-1785584)
 * I made a php.ini file and use the following coding :
    “[PHP] post_max_size=64M
   upload_max_filesize=32M” but all in west.

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

The topic ‘post_max_size being defined as smaller than upload_max_filesize’ is closed
to new replies.

## Tags

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

 * In: [Alpha/Beta/RC](https://wordpress.org/support/forum/alphabeta/)
 * 2 replies
 * 1 participant
 * Last reply from: [Mr. A](https://wordpress.org/support/users/amber-nagpal/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/post_max_size-being-defined-as-smaller-than-upload_max_filesize/#post-1785584)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
