We are setting up a contact form in Contour where we have added a File upload field for attaching a file, but when we test the contact form, the attached file isn't included in the entry data received.
I have now tested Umbraco 6.2.5 and Contour 3.0.28, I assume that when you upload a file, then you will see the path to the upload file. If you added that path to your domain name then you can download the file.
That is not so user-friendly so what you can do to make it a bit more user-friendly is.
In your work-flow for your from, choose the option to use Send xslt transformed email work flow. When you use this you have the option to customize how the email should look like.
Thanks for your reply, but I don't get the path to the uploaded file - in fact it seems the file isn't uploaded at all, as it is not present in either the entry data in Contour nor the e-mail I get due to the workflow I set up.
The strange thing is that the Attach file function works fine in the preview of the contact form in Contour (i.e. attached files are present in the entry data in Contour and in the workflow e-mails), but it doesn't work in the published contact form.
There is access to the folder \umbraco\plugins\umbracoContour\files
If the site is not using MVC, this problem can be solved by changing the render macro "Insert form from Umbraco Contour" to use the usercontrol "~/usercontrols/umbracoContour/RenderForm.ascx" instead of the "MvcRenderContourForm.cshtml" file.... ;-)
Attaching file in a contact form
We are setting up a contact form in Contour where we have added a File upload field for attaching a file, but when we test the contact form, the attached file isn't included in the entry data received.
Any ideas what we are doing wrong?
Hi Knud,
What version of Umbraco and Contour are you using?
/Dennis
We're using Umbraco v6.2.5 and Contour v3.0.28.
Hi Knud,
I have now tested Umbraco 6.2.5 and Contour 3.0.28, I assume that when you upload a file, then you will see the path to the upload file. If you added that path to your domain name then you can download the file.
That is not so user-friendly so what you can do to make it a bit more user-friendly is.
In your work-flow for your from, choose the option to use Send xslt transformed email work flow. When you use this you have the option to customize how the email should look like.
You can find the XSLT for the email in this folder \Umbraco\Plugins\umbracoContour\xslt\sendXsltEmailSample, if you open this file, and overrite it with this code below, https://gist.githubusercontent.com/PaulSorensen/7983503/raw/e2a975e120703bf0cf3e7acd5df21a2b9bfda94c/contourXSLTwithURL.xslt
Then you will get a link to the file that you have uploaded. What you just need to do is add the XSLT file to the work-flow.
Hope this helps,
/Dennis
Hi Dennis,
Thanks for your reply, but I don't get the path to the uploaded file - in fact it seems the file isn't uploaded at all, as it is not present in either the entry data in Contour nor the e-mail I get due to the workflow I set up.
Hi Knud,
Maybe you have some permissions issue, so it donĀ“t have acces to the folder where it try to save the attached file.
The uploaded files in Contour are saved in \Umbraco\Plugins\umbracoContour\files
Could you please check that you have the permissions on files and folders in your Umbraco installation as described here. https://our.umbraco.org/documentation/Getting-Started/Setup/Server-Setup/permissions and https://our.umbraco.org/documentation/Getting-Started/Setup/Requirements/
Hope this helps,
/Dennis
Hi Dennis,
The strange thing is that the Attach file function works fine in the preview of the contact form in Contour (i.e. attached files are present in the entry data in Contour and in the workflow e-mails), but it doesn't work in the published contact form.
There is access to the folder \umbraco\plugins\umbracoContour\files
Hi Knud,
Do you have the possibility to send us a copy of your database and website so we can try debug on this.
You can send me an email at dennis at umbraco .com
/Dennis
If the site is not using MVC, this problem can be solved by changing the render macro "Insert form from Umbraco Contour" to use the usercontrol "~/usercontrols/umbracoContour/RenderForm.ascx" instead of the "MvcRenderContourForm.cshtml" file.... ;-)
is working on a reply...