Manual:$wgAjaxUploadDestCheck/ru

Details
Enable Ajax check for file overwrite, pre-upload.