Manual:$wgAjaxUploadDestCheck

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

1