filefield_validate_size() checks only 'Maximum upload size per file'.

CommentFileSizeAuthor
#2 filefield_total_node_size_1.patch1.1 KBamitaibu
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dopry’s picture

Status: Active » Closed (fixed)

see filefield_node_form_validate ... again read the code more closely and test your theory before making assertions.

amitaibu’s picture

Title: Maximum upload size per node is never checked » Maximum upload size per node is never checked for unrequired field
Status: Closed (fixed) » Needs review
FileSize
1.1 KB

Sorry, my reference to the code was incorrect, but I did check my theory before :)
Attached patch tries to solve it, as it's never executed if field isn't required.

dopry’s picture

Status: Needs review » Fixed

feexed in HEED!! good catch!!

Status: Fixed » Closed (fixed)

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