Currently, MediaWiki stores images size as a unsigned 32 bits information. That means a limit of 4 GB (2^32 = 4294967296 bytes).
If we need to allow MediaWiki to store larger files, we need to store this information as 64 bits integers.
The following fields are concerned:
- image.img_size
- oldimage.oi_size
- filearchive.fa_size
- uploadstash.us_size (to be confirmed, as this uses chunked uploads?)