There are a few bugs in the validation logic + incorrectly referenced variables (for example, calling $value instead of $values) that causes the form_set_error to be called every time a file field is saved, regardless if there is a legitimate error or not.

Below is a patch that fixes those errors and provides improved error messages during the validation process.

CommentFileSizeAuthor
#1 term_fields-1355862-1.patch1.38 KBkmonty

Comments

kmonty’s picture

Title: Max Size validator for file fields does not work. » Max Size validator for file fields does not work
StatusFileSize
new1.38 KB

Sorry, attaching

b-prod’s picture

Status: Needs review » Fixed

Fixed in DEV version.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Editing the description to provide more detail.