XF 2.2 Has anyone ever had an issue with random images refusing to upload?

PumpinIron

Well-known member
This is the most bizarre thing, so forgive me if I've posted this in the wrong forum. I simply don't know if it's a XenForo bug, a server issue, or something else.

Every so often (and this seems very seldom unless members are underreporting it) someone will use the "Attach file" button and upload an image, pick their image, and watch it upload. Problem is, they encounter this:

Screen Shot 2022-04-08 at 8.39.15 PM.png

Notice how the image is uploaded but there is no image at all? If you post the reply it creates a reply with no image at all in it.

When viewing my JavaScript debugging console, I see this error which I assume is related:

Screen Shot 2022-04-08 at 7.45.44 PM.png

And here's the question: Why is this only happening on some image uploads?
 

PumpinIron

Well-known member
The issue has been solved.

I looked through the Cloudflare logs for my IP address and found this:

Screen Shot 2022-04-12 at 1.14.55 PM.png

Screen Shot 2022-04-12 at 1.21.45 PM.png


One of the Cloudflare rules was blocking image uploads (occasionally) based on what it perceived as malicious activity. I raised the score from 25 to 40 so that hopefully this doesn't happen again.

I'm also going to whitelist the /attachments/upload/ path. Does anyone know the proper way to go about doing that in Cloudflare?
 
Top