Validating all attachments one time for every role a submitter has is a waste of resources. Figure out the values for the file validators before we call file_save_upload() to validate the files. This basically means moving the call to file_save_upload() out of the foreach loop for roles, and making the process of figuring out the values of the validators a little more clever.

Comments

Tor Arne Thune’s picture

Status: Active » Fixed

Committed and pushed: 33fd1cd.

Tor Arne Thune’s picture

Project: » Contact Attach
Version: » 7.x-1.x-dev

Status: Fixed » Closed (fixed)

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