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!!!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users