This is an extension of #370537: Allow suppress of form errors (hack to make "more" buttons work properly), which simply adds support for File module's manage_file FAPI element.

To reproduce:
- Install Drupal 7
- Create a new article node.
- Do not enter a title.
- Upload a file.
- After the file uploads, the user gets the error "The Title field is required.", which is confusing since there's no reason why a file shouldn't be uploaded before a title is entered.

CommentFileSizeAuthor
file_validation_fix.patch835 bytesquicksketch

Comments

naxoc’s picture

Status: Needs review » Reviewed & tested by the community

I tested that the error is not shown anymore. And I agree that it is very confusing that title is required to upload an image.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD! Thanks!

Status: Fixed » Closed (fixed)

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