XF 1.5 There was a problem uploading your file

Sim

Well-known member
I've got a problem uploading video files to XFMG - I'm getting "There was a problem uploading your file" errors for larger files, but no errors appear in the logs.

I have the following PHP settings:
  • memory_limit = 256M
  • post_max_size = 512M
  • upload_max_filesize = 512M
  • max_input_time = 3600
and on NGINX:
  • client_max_body_size 500M;
It seems to be around the 100MB mark that I start having problems

The weird thing is that my dev server is built from the same installation script (although running on a different VPS provider) and I can get larger uploads to work before it fails - although it is possible that I tweaked something else on my dev server and didn't record it.

So there's obviously some other variable affecting uploads that I haven't considered yet - what have I missed?
 
Well that's bizarre - I just did a fresh install of XF1.5 + XFMG to a test domain on the same server and then tried some video uploads - they all worked, even the 235MB video.

Edit: found it ... Cloudflare! My production site uses it, this test site doesn't.


Depending on the plan your domain is subscribed to, Cloudflare limits data uploads to the following sizes:
  • 100MB Free
  • 100MB Pro
  • 200MB Business
... I'm on the Pro plan, so that's what would be causing the limitation.

Now, to work out how to bypass Cloudflare for uploads!
 
Top Bottom