Big uploads failing only on Firefox?
-
We’ve been facing an issue on our site for a couple of months that’s been very hard to fix, because for a long time I thought it was a server-side issue and just found out that it’s probably not.
Although we have plenty of server resources, high CPU/memory/timeout limits, etc., whenever I upload images that are more or less bigger than 8-10MB to WordPress, it fails in the processing step after exactly 30 seconds.
What I mean is: the upload finishes very quickly (I have a 1Gbps fiber connection), then I count 30 seconds after the WordPress’ upload bar has filled, and this error comes up: https://d.pr/i/XWVCbr
For SEO’s sake, it says:
The server cannot process the image. This can happen if the server is busy or does not have enough resources to complete the task. Uploading a smaller image may help. Suggested maximum size is 2560 pixels.
Of course, smaller images aren’t an issue (probably because they finish processing before the 30-second limit). Another weird thing is that, even when WordPress presents that error, sometimes the large image does get successfully processed anyway. But not always.
As the error implies, for a long while I thought it was a server-side issue. We’ve looked into everything: PHP, Apache, ImageMagick, ModSecurity, Cloudflare… no good.
Long story short, I recently found out that this doesn’t happen at all when uploading images via Safari. I can even upload like a 40MB image, it will take a while to process, but it doesn’t ever stop/break at 30 seconds and always process it successfully.
So, what gives? Is this really a Firefox issue? I tried playing with lots of about:config settings related to some kind of 30-second timeout, but still haven’t figured it out. Any ideas? Thanks!
- You must be logged in to reply to this topic.