I suppose you are using a File field. In that case you can specify that the field returns an array (see the screenshots in the documentation). Then you should be able to call the title using $file['horse_official_document']['filename'].
Thanks for pointing me in the right direction. I have been switching settings before posting this topic. The field was actually configured to output url and not an array.
Your solution $file['horse_official_document']['filename'] works fine now. Thanks so much!!!