Thread:Project:Support desk/1.21.6.patch failure/reply

What was the previous version of Mediawiki?

You probably know this, but you can examine the .rej file to make the necessary changes in includes/upload/UploadBase.php. Alternatively, just download it from here.