[imp] attachment size limit regarding....

Eric Jon Rostetter eric.rostetter at physics.utexas.edu
Wed Feb 8 20:40:16 PST 2006


Quoting Anant S Athavale <asa at isac.gov.in>:

> I would like to set a different attachment size limit based on some   
> attribute of
> ldap (lower than the maximum allowed).  How to achieve it?

The answer is slightly different depending on it you mean the max total size
of all attachments together, or the max total size of any individual
attachment.

Assuming you mean that of an individual attachment, you could add some
code somewhere which got the value from the ldap server, calculated
the size limit based on it, and then set the php parameter for
"upload_max_filesize" dynamically.

If you wanted to control the total size, you could put similar code into
horde/imp/conf.php to set the config variable "attach_size_limit" defined
there.

> Regards,
>
> Anant

-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Go Longhorns!


More information about the imp mailing list