The uploaded file exceeds the upload_max_filesize directive in php.ini

I’m trying to upload a XML file through WordPress Importer

It shows this error, no matter what the size of the file is.

Read More

Even 10kb file throws up this error.

My php.ini settings were set to 100MB, still no change. Back to defaults, wich is 8MB.

I’m starting to think it’s permission related.

Any ideas?

Related posts

2 comments

  1. You need to make the following changes in php.ini file on your server.

    upload_max_filesize = 100M
    post_max_size = 100M
    

    If still it’s same then update value of memory_limit.

  2. Use phpinfo() to verify what the setting is. Some hosts do not allow you to change the PHP settings via php.ini. Some may require that you do it via .htaccess. If when you run phpinfo() the value is different than the 100MB you set it to via php.ini then there’s a good chance this is the case.

    Look through your host’s knowledge base or give them a call and they can tell you their preferred method of changing PHP settings. Also, some hosts do not allow you to change certain settings in which case you’ll need to request that they make the change. They will be able to tell you this as well.

    Hope this helps!

Comments are closed.