Skip to content

Fix mess of nginx/php/mediawiki upload size limits#186

Merged
hcooper merged 1 commit intomasterfrom
upload_limits
Mar 21, 2026
Merged

Fix mess of nginx/php/mediawiki upload size limits#186
hcooper merged 1 commit intomasterfrom
upload_limits

Conversation

@hcooper
Copy link
Contributor

@hcooper hcooper commented Mar 15, 2026

Unpicked the complex mess of upload size limits, and documented them.

tl;dr -

  • 10MB is the upload limit (already set in php.ini), mediawiki should provide friendly errors.
  • both nginx configs will allow 11MB in order to not interfere in the process. It currently has contradictory settings.

This fixes the problem that mediawiki says the limit is 10M, but nginx will fail it if it's over 5M.

image

Copy link
Member

@BenjaminPelletier BenjaminPelletier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought I had confirmed an 8MB upload worked way back when, but apparently we've always been at war with Eastasia...

Thanks, this clear and I don't see anything that could be incorrect.

@hcooper hcooper merged commit a4a3e96 into master Mar 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants