Title: Image Upload Error Behind CloudFront
Last modified: February 11, 2026

---

# Image Upload Error Behind CloudFront

 *  [kloddant](https://wordpress.org/support/users/kloddant/)
 * (@kloddant)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/image-upload-error-behind-cloudfront/)
 * This plugin appears to cause a 502 error response from CloudFront on the async-
   upload.php script when uploading images to the media library. The images get 
   uploaded, but afterwards, the ajax request does not finish because of the 502
   response, so you have to refresh the page in order to see the image. To replicate
   this, put your site behind CloudFront and try uploading an image. I am not sure
   why this error is occurring, but when I disabled this plugin, it went away.
    -  This topic was modified 3 months, 2 weeks ago by [kloddant](https://wordpress.org/support/users/kloddant/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fimage-upload-error-behind-cloudfront%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/image-upload-error-behind-cloudfront/#post-18818138)
 * What’s the underlying error on your server please? It’ll be in your server error
   log or PHP error log. The `502` is just a generic error code from Cloudfront.

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fimage-upload-error-behind-cloudfront%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/query-monitor/assets/icon.svg?rev=2994095)
 * [Query Monitor](https://wordpress.org/plugins/query-monitor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/query-monitor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/query-monitor/)
 * [Active Topics](https://wordpress.org/support/plugin/query-monitor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/query-monitor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/query-monitor/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * Last activity: [3 months, 2 weeks ago](https://wordpress.org/support/topic/image-upload-error-behind-cloudfront/#post-18818138)
 * Status: not resolved