Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controlling the size of cfmail

Status
Not open for further replies.

jarla

Programmer
Jan 2, 2001
34
0
0
FI
Hi!
Is there any way to control how big attachments user send via our cfmail -based system? We have picturebank with download and email -functions and our customers can add group of pictures to one zip -file and then send it via email to somebody. Or download the packet to their harddrive. Downloading is not the problem, but now we have found that some users pick up lot of pictures to one zip-file and the size of the zip can grow easily over 10Mb. When it goes via email, the size of course rise about two times. Our mailserver don´t accept sending mails over 30Mb.
So I need to know how can I check the size of mail before it goes to "spool" -folder. It would be easy if there is an option in CF Administrator -page like "Don´t send messages greater than xxxx kb", but that´s not possible...
 
You can check the size of the attachments when you do your
Code:
CFFILE ACTION="upload"
by checking
Code:
#CFFILE.fileSize#
... then simply reject any that are over a given size.


-Carl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top