File upload on front end form not working

I have a file upload field on a front end form. When I attach a file, there appears an X over the file thumbnail. When I hover over the thumbnail, this readout appears:

Call to undefined method

If I submit, it goes through ok. I get an email, but there is no attachment,