FileItem.hasError

Returns true if the file fails to upload

Further documentation.

returns boolean