WordPress error on upload

Sometimes I find an issue when uploading files or images to WordPress via the admin area. It may say; “the uploaded file could not be moved to…” or “HTTP error”, I have narrowed this down to 3 potential possibilities:

  • If you have added a custom permalink you may need to add the following code to the .htaccess file in the root:
  •     <IfModule mod_rewrite.c>
            RewriteEngine On
            RewriteBase /
            RewriteRule ^index\.php$ - [L]
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteRule . /index.php [L]
        </IfModule>
        <IfModule mod_security.c>
            SecFilterEngine Off
            SecFilterScanPOST Off
        </IfModule>
  • File permissions may need changing on the FTP, you can do this by right clicking and choosing ‘Set Permissions’ on the folder in remote view.
  • If the website was moved from the Localhost to the live web server, the paths may need changing in the database via phpmyadmin.
  • Website has run out of disk space or bandwidth.

Please remember that these are only solutions for problems that I have come across and hopefully will work for you as well.

This entry was posted in WordPress Notes and Tips.
Bookmark the permalink.

Leave a Reply