Manual:$wgAjaxUploadDestCheck/en

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