mysociety / whatdotheyknow-theme

The Alaveteli theme for WhatDoTheyKnow (UK)
http://www.whatdotheyknow.com/
MIT License
31 stars 26 forks source link

Check if and where we've got a limit set on file uploads for those responding via the web-service and consider increasing it #1611

Closed RichardTaylor closed 1 year ago

RichardTaylor commented 1 year ago

Noted in Slack that we appear to have a 50mb limit

garethrees commented 1 year ago

No limit; probably a timeout. No plans to change right now

mdeuk commented 1 year ago

No limit; probably a timeout. No plans to change right now

Just noting - we definitely do have a limit, but it appears to be set at httpd level, as the error is generated by nginx.

To test, I generated two test files - 49mb and 51mb in size.

The 49mb file uploads using the officer form without issue, but, the 51mb is rejected (prior to upload), with the error:

413 Request Entity Too Large

nginx

I suspect there probably isn't much call for changing this, but thought it'd be worth noting anyway.

garethrees commented 1 year ago

Ah, we do have a bit of a "fun" setup with a few various layers. That'll be set above alaveteli installs. Either way, seems like an edge case that isn't routinely causing issues.