XF 1.2 Security error when uploading largish attachment?

Liam W

Well-known member
I'm trying to make a thread with a 25MB attachment. The file uploads, but when it finishes I get an overlay stating a security error occurred.

This has happened the last few times.

Any ideas why and any ideas as how to fix it?

Jake Bunce

XenForo moderator
Staff member
Do you have suhosin installed (hardened PHP)? Suhosin can truncate requests when limits are exceeded which can cause a security error like this if the token is truncated. Otherwise you would normally get an error saying what limit has been exceeded.

Liam W

Well-known member
It's working now, thankfully.

I think it may have been the max post size? It was set to 8MB :/

Also, you get a different uploading screen sometimes...