Hi All,
Has anyone used CGBetterForms with file attachment in the form, as i just can not get this to work and need some advice
so used this in the template ...
<div class="form__item">
<label for="cv" class="form__label">Upload your CV</label>
<input type="file" id="cv" name="cv" value="{$form_data->cv}" data-cgbf-accept="application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.oasis.opendocument.text,application/vnd.apple.pages,application/x-iwork-pages-sffpages">
</div>
But what should go in the form handler to make it send the file with the email?
Kind Regards
Paul
CGBetter forms file attachments
Re: CGBetter forms file attachments
I don't think CGBF currently has the ability to create a file attachment, probably just a link to the file. You may need to file a feature request, and/or offer to sponsor or co-sponsor (I recall seeing a few others asking about it, so perhaps it can be crowd-funded).
Not getting the answer you need? CMSMS support options
Re: CGBetter forms file attachments
HI,
A link to the file would be good, how can i provide a link to the uploaded file, every option i try just does not work.
Paul
A link to the file would be good, how can i provide a link to the uploaded file, every option i try just does not work.
Paul
Re: CGBetter forms file attachments
I just did a quick test, with this in my template:
And the {$file} field was available for use in templates - it contained the full url to the file. So in your email you could include a link like:
Code: Select all
<label>upload file
<input type="file" name="file">
</label>
Code: Select all
<a href="{$file}">Download file</a>
Not getting the answer you need? CMSMS support options