Custom Form File Upload email attachment max size


(Nic Hubbard) #1

When using a Custom Form and an File Upload question, we are attaching that file to the email that is sent when the form is submitted.

 

Is there a max size that the attached file can be?


(Benjamin Pearson) #2

That should be governed by php.ini I think, look for post_max_size (or something like that)


(Marcus Fong) #3

If it’s a question of how large a file you can upload via PHP (and hence Matrix), there’s two settings in php.ini to consider - upload_max_filesize and post_max_size.

http://php.net/manual/en/ini.core.php#ini.upload-max-filesize

http://php.net/manual/en/ini.core.php#ini.post-max-size


If, on the other hand, you’re talking about the maximum e-mail attachment size, that would be governed by whichever has the stricter limit - your Matrix server’s mail service or the recipient’s mail server. For instance, Postfix’s message_size_limit configuration parameter defaults to 10MB, according to its man pages:


http://www.postfix.org/postconf.5.html


(Nic Hubbard) #4

If, on the other hand, you're talking about the maximum e-mail attachment size, that would be governed by whichever has the stricter limit - your Matrix server's mail service or the recipient's mail server. For instance, Postfix's message_size_limit configuration parameter defaults to 10MB, according to its man pages:
http://www.postfix.org/postconf.5.html

 

Yes, this is what I was meaning. Thanks!