Call to a member function getClientOriginalName()

I keep on getting this error when I try to upload a pdf document file, does anybody have any idea how to solve this?