Manual:$wgAjaxUploadDestCheck

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