I'm trying to add attachment for magento's contact form to allow users to send artwork for their orders and having the follow problem.

The form is on the following url http://boxchilli.co/a3mdirect/final-upload

Once you fill in the information, upload your image and hit submit the form redirects to http://boxchilli.co/contacts/index/post it also doesn't send any email out.

http://www.magentocommerce.com/boards/viewthread/440759/ I followed this guide on adding upload to the form so my code looks like the following link.

1 Answer 1


There is a problem with the url where you submit the form.
The form action is relative /contacts/index/post. It needs to be absolute. BASE_URL/contacts/index/post.
For this, edit the template that is rendering the form and add the form action like this:

  • Thanks for the feedback, my form does the following <form action="<?php echo $this->getFormAction(); ?>" id="contactForm" method="post" enctype="multipart/form-data"> So I guess I just need to find where getFormAction is called?
    – lee murphy
    Commented Dec 17, 2013 at 14:08
  • Better look for setFormAction() or form_action="..."
    – Marius
    Commented Dec 17, 2013 at 14:09
  • I can't seem to find the two above, most likely explains the issue then.
    – lee murphy
    Commented Dec 18, 2013 at 9:28
  • Found it, was within another file
    – lee murphy
    Commented Dec 18, 2013 at 11:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.