Closed (fixed)
Project:
Contact Attach
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
7 Apr 2012 at 16:59 UTC
Updated:
4 May 2012 at 12:40 UTC
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
Comment #1
Tor Arne Thune commentedCommitted and pushed: 33fd1cd.
Comment #2
Tor Arne Thune commented