Jump to content

Two File Upload Fields in the Contact Form


Recommended Posts

I would like to have more than one file upload field in my contact form so that customers can email more than one attachment at one time. I tried in my contact.tpl to copy the file field and rename with a 2 after it & then in the ContactController.php I tried to duplicate the $fileAttachment = Tools::fileAttachment('fileUpload'); line and change to fileUpload2.

 

But that didn't work, it still only sent one attachment...so I must have missed something I am thinking it must be in the ControllerForm somewhere. Any one know how to achieve this?

 

post-795838-0-81711300-1401396110_thumb.jpg

Link to comment
Share on other sites

×
×
  • Create New...