views:

84

answers:

1

How can I limit the type of files of the email attachments sent by my contact form to Doc, Docx, PDF?

+1  A: 

There's a snippet for that.

Usage is:

attachment = ExtFileField(ext_whitelist=(".pdf", ".txt"))
Dominic Rodger
that worked, thanks again
Harry
@Harry - great, glad it worked!
Dominic Rodger