Forums

Email attachment to demo form

Mazey 03 Oct, 2014
Dear sirs,

I am trying to edit the demo version of demo-multi-field-contact-secured to make it possible to attach a file to the email, alas it is not working. I did connect the form to a db table and the info is in the db table, only none of the chosen attachments.

Please let me know what info you need in order to help me.

Thank you very much in advance!
Max_admin 04 Oct, 2014
Answer
Hi Mazey,

There is a demo file upload form in the latest update showing how this can be done, could you please check that ?

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Mazey 04 Oct, 2014
Thank you very much for that hint, I had the path wrong thinking it could be any folder in my joomla section (it has to be in components/chronoforms I think).

Now I have two more questions....Is it possible to delete the files again after uploading? My last question refers to the actions that are downloadable....I tried both for V5 and V4 and they both gave me an error when trying to install. Thats unfortunate as I would like to use the actions too. Any ideas on that?

Once again thank you for your quick response.
Max_admin 04 Oct, 2014
In order to delete the file, you need to use PHP code in a "custom code" action, you will need to specify the file path, which can be found under the $form->files array!

Which actions ? you can download and install the TCPDF action, using the "actions installer" under the forms manager!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Mazey 04 Oct, 2014
Yes, I used the TCPDF action - both versions gave me a php error. Is it made for a certain version of PHP?

Thank you Max for all your help.
Max_admin 04 Oct, 2014
No, but did you install them using the "actions installer" ? if yes then what was the error ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.