Manual:$wgUploadMaintenance

Details
To disable file delete/restore temporarily. This does not prevent users from uploading files, which currently must be separately disabled using. See.