Title: Image uploads (HTTP error)
Last modified: August 31, 2016

---

# Image uploads (HTTP error)

 *  [matt4](https://wordpress.org/support/users/matt4/)
 * (@matt4)
 * [10 years ago](https://wordpress.org/support/topic/image-uploads-http-error/)
 * Hi,
 * I’m having an issue uploading images. Same as here – [https://wordpress.org/support/topic/http-error-when-uploading-images-17/page/3?replies=76](https://wordpress.org/support/topic/http-error-when-uploading-images-17/page/3?replies=76)[
   link edited. Do not mask link]
    None of the fixes mentioned work.
 * Can someone be of assistance here? Is there a solution?
    My blog is – mixedmatt.
   com
 * Thank you,

Viewing 1 replies (of 1 total)

 *  [Clarion Technologies](https://wordpress.org/support/users/clarionwpdeveloper/)
 * (@clarionwpdeveloper)
 * [10 years ago](https://wordpress.org/support/topic/image-uploads-http-error/#post-7386232)
 * Add this below code in function.php fle
 *     ```
       add_filter( 'wp_image_editors', 'change_graphic_lib' );
       function change_graphic_lib($array) {
       return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
       }
       ```
   
 * If above code is not work , follow below steps to remove error
 * 1. Decrease the image’s size. Don’t add a 2000 x 1500 image, for example. If 
   your post content area is 700px wide, don’t add an image larger than that.
 * 2. Change the image’s extension from .png to .jpg, or vice versa, then upload
   it again.
 * 3. If the problem appears after installing a plugin, deactivate it and try it
   again. Some plugins can trigger the error.
 * 4. Increase your PHP memory. Add this code define(‘WP_MEMORY_LIMIT’, ’64M’) into
   your wp-config.php file. This setting may not work if your host does not allow
   you to increase the PHP memory limit, so I suggest talking to your support directly
   and ask them to change the limit for you. You’ll skip the hassle.
 * Read this guide if you need to know how to access and edit your WordPress files.
 * 5. Add one of these codes in .htaccess:
 *     ```
       <IfModule mod_security.c>
       SecFilterEngine Off
       SecFilterScanPOST Off
       </IfModule>
       ```
   
 * or
 * # 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>
       ```
   
 * or
 * AddType x-mapp-php5 .php (at the very top of your .htaccess file)

Viewing 1 replies (of 1 total)

The topic ‘Image uploads (HTTP error)’ is closed to new replies.

## Tags

 * [HTTP Errors](https://wordpress.org/support/topic-tag/http-errors/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Clarion Technologies](https://wordpress.org/support/users/clarionwpdeveloper/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/image-uploads-http-error/#post-7386232)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
