When uploading a file using the UploadBase.php class, the getTitle() function will return the title of the uploaded file or null if the title is invalid for some reason. However, to figure out why the title is invalid, you have to access the member variable mTitleError or call the function validateName(). Both are protected though so they can't be called by external classes.
The easiest fix would be to make validateName() public instead of protected.
Version: 1.20.x
Severity: enhancement