Topic on Project:Current issues

Jump to navigation Jump to search

Manual_talk:Configuring_file_uploads + file too big : what happens ?

Wladek92 (talkcontribs)

Hi all, re-reading page

(or other more generic to uploads) I dont see where is described the action following the upload of a too big file: is the upload rejected ? (with failure return code) or is it done with truncation to the limit size ? or is there a dialogue with user to transfer till limit or abort for this file? or ... ? Even if the answer is obvious it 'd be nice to have one simple sentence about that. Thanks.

Christian Wia (talk) 21:33, 11 August 2019 (UTC)

MarkAHershberger (talkcontribs)

If the upload is too big, it is rejected. The server can often do this before any of the file is transmitted because the browser will tell the server the size before it actually sends the file.

Ciencia Al Poder (talkcontribs)

By "The server can often do this" you probably wanted to say "The browser can often do this".

When it fails, the server can give multiple errors depending at which layer the limit was imposed: If it's a server limit (nginx, apache) on the maximum amount of transmitted data, it may simply fail with a HTTP 500 error or HTTP 413 – Request entity too large.

If the limit it's at the PHP level, if post_max_size is hit, you may get a generic HTTP 500 error (or simply a blank page). Otherwise, MediaWiki should give a more meaningful error message

Wladek92 (talkcontribs)

I wait a bit and I will try to sum up all these informations ...

Reply to "Manual_talk:Configuring_file_uploads + file too big : what happens ?"