WordPress: Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page WordPress: Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page wordpress wordpress

WordPress: Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page


I think my answer is too late. but I would like to post a solution for anyone still looking for a solution for this issue on WordPress running on Nginx.You should add the following directive to set the maximum allowed size in HTTP(server/location) section.

client_max_body_size 10M;


The mentioned error is generic, it may refer to more than one possibility, so check this out:

  • Maybe you enabled Cloudflare with basic plan in your hosting, if so, Cloudflare limits the upload to 100 MB.
  • Maybe you mixed content on your website, with some pages refering to http and other pages refering to https. If so, please check the link: https://websitesetup.org/http-to-https-wordpress.
  • Maybe you installed security plugin.


Deactivating "All in one WP security" did the trick. You can re-enable it after the upload.