WordPress.org

Support

Support » How-To and Troubleshooting » Error: The uploaded file exceeds the upload_max_filesize directive in php.ini.

Error: The uploaded file exceeds the upload_max_filesize directive in php.ini.

  • Hi everyone – I am trying to restore a blank screen blog. Another post suggested uninstalling WP via the cpanel after backing up the db, then reinstalling. I used tools > export to create an xml file, uninstalled my WP, then reinstalled WP and used tools > import and got this error message when trying to upload the xml file:

    The uploaded file exceeds the upload_max_filesize directive in php.ini.

    What gives? Is is the same file I downloaded minutes before. How else can I get it back in there so I dont have to start from scratch? Thanks!
    Karen

    Karen Clark | My Business Presence

Viewing 6 replies - 1 through 6 (of 6 total)
  • billdennis5

    @billdennis5

    Good luck getting an answer to this. You are not the first person to request help for this problem, only to get silence here. You would think a problem so common that they don;’t bother answering anymore would merit an addition to the codex.

    chrissiek

    @chrissiek

    chrissiek

    @chrissiek

    BTW, I tried the instructions and I just emailed my host.

    I think the file size needs to be increased to import it

    I wrote a post about how to increase the memory limit in your php.ini file. It assumes you have ftp access to your server, but it’s fairly straight-forward:

    http://wordpresstheming.com/2009/07/upload_max_filesize/.

    you may want edit the .htaccess file instead of doing it to your php.ini file. most wp install are hosted on a sharing environment and with no access to the php.ini at all.

    i have tried adding a php.ini into the wp-admin folder but it didn’t work, this one below works and not just on wp but to all web applications that uses php to upload.

    just copy and paste the code below to your .htaccess file

    ########
    php_value upload_max_filesize 50M
    php_value post_max_size 50M
    php_value max_execution_time 500
    php_value max_input_time 500
    #########

    Increase upload limit on PHP

    why not try uploading it via ftp and put the file in /wp-content/uploads

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error: The uploaded file exceeds the upload_max_filesize directive in php.ini.’ is closed to new replies.