Skip to content
Snippets Groups Projects
Commit fb0b3871 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

Merge pull request #2338 from kurund/CRM-14064

fixes for CRM-14064
parents 93c071bc 3a6b1049
No related branches found
No related tags found
No related merge requests found
......@@ -258,11 +258,13 @@ class CRM_Mailing_Form_Upload extends CRM_Core_Form {
CRM_Mailing_BAO_Mailing::commonCompose($this);
$this->addElement('file', 'textFile', ts('Upload TEXT Message'), 'size=30 maxlength=60');
$this->addUploadElement('textFile');
$this->setMaxFileSize(1024 * 1024);
$this->addRule('textFile', ts('File size should be less than 1 MByte'), 'maxfilesize', 1024 * 1024);
$this->addRule('textFile', ts('File must be in UTF-8 encoding'), 'utf8File');
$this->addElement('file', 'htmlFile', ts('Upload HTML Message'), 'size=30 maxlength=60');
$this->addUploadElement('htmlFile');
$this->setMaxFileSize(1024 * 1024);
$this->addRule('htmlFile',
ts('File size should be less than %1 MByte(s)',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment