aaron248
asked on
PHPMailer-FE
Hello, I'm using PHPMailer-FE 4.0.6 to create a form where the user can upload multiple files. The form itself works and e-mails me successfully with proper error checking.
However, the user is able to upload files of any extension and they will attach and be sent with the e-mail. I tried setting the following line in form.config.php to no avail
:
$_POST['allowedFileTypes'] = 'pdf|jpg|jpeg|png|gif|zip' ;
Doing some searches on Google proved unsuccessful. Played around with the code in phpmailer-fe.php as well. Any ideas on what has to change in the default phpmailer-fe.php code to allow only certain file extensions to be attached/uploaded? Or am I missing something else.
Thanks in advance for any help!
Aaron248
However, the user is able to upload files of any extension and they will attach and be sent with the e-mail. I tried setting the following line in form.config.php to no avail
:
$_POST['allowedFileTypes']
Doing some searches on Google proved unsuccessful. Played around with the code in phpmailer-fe.php as well. Any ideas on what has to change in the default phpmailer-fe.php code to allow only certain file extensions to be attached/uploaded? Or am I missing something else.
Thanks in advance for any help!
Aaron248
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Aaron