I have a number of WordPress sites, and I regularly get 504: Gateway time-out error when trying to upload images.When this occurs it will happen continuously on any file I try to upload. It even happens on tiny images and the error comes back after only a few seconds, so it is not a timeout on the server.
The websites and everything else is working fine when this occurs, it only affects uploads.
When this occurs I usually have no choice but to go away and come back later and hope it works.
I have only just figured out today that the error was coming from cloudflare after closely analyzing the HAR file.
Other than turning off CF, not sure what else to do?