If you are getting http error in WordPress while uploading files to Media Library , It means some sort of interruption is happening in between WordPress file handling operations and web server interface . Before doing a workaround always wait for a few moments and refresh the page once and retry the same process to make sure that it is not a temporary glich from your hosting panel . If you still face the same error again , please try the following solutions . Before doing these steps always make sure that you have a complete healthy backup of your site.

1. Shrink or Resize the File

Sometimes http error may happen if your image size is so big . Make sure that the file size is not exceeding the maximum upload size configured in your WordPress Setup . You can also reduce the size by reducing height , width or pixel resolution of the image

2. Deactivate Plugins

In most of the cases plugins may be the culprit which is causing the intervention between WordPress and Webserver . In that case try to deactivate the plugins one by one and check whether it resolve the issue . If you are using plugins for Image optimization , WordPress Security you can start the process by deactivating them first .

3. Increase WordPress Memory Limit

If file size exceeds the maximum upload size defined in wp-config.php sometimes it may result in http error . You can increase it by adding the following lines of code by editing wp-config.php located in the site’s root directory 

define( 'WP_MEMORY_LIMIT', '256M' ); 

4. Edit .htaccess

You can find .htaccess in your website’s root folder , in most of the cases , within a folder named “public_html” . You can add the following code  to resolve the http issues arising from .htaccess

SetEnv MAGICK_THREAD_LIMIT 1 
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule> 
# Exclude the file upload and WP CRON scripts from authentication
<FilesMatch "(async-upload\.php|wp-cron\.php|xmlrpc\.php)$">
Satisfy Any
Order allow,deny
Allow from all
Deny from none
</FilesMatch> 

5. Switch your theme to default one

Sometimes incompatible features , functional conflicts in between themes and plugins may be the main cause of http error . You can check it by switching the theme to default theme (eg: Twenty Seventeen) . If it resolve the issue the next step is you can contact the theme author or hire an expert wordpress developer  to debug wordpress theme – plugin related issues

6. Check Uploads Folder Permissions

Having incorrect file permissions of upload folder can end up in http error. You can find this folder in /wp-content/uploads folder, as this is where files are stored when uploaded via the media library.According to the WordPress Codex, all directories should be 755 (drwxr-xr-x) or 750.You can set this file permission through your hosting panel  file manager interface or FTP client

7. Update WordPress Core & Php Version

Make sure that you have the latest version of WordPress and stable version of Php . You can launch the update by clicking the link in the new version banner (if it’s there) or by going to the Dashboard > Updates screen . To update the Php version you can select the version through Hosting control panel or raise a request to your hosting provider

If any of the above methods won’t resolve the issue . Kindly free to contact us and our WordPress Experts will help you to sort out the issue.