Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

Filename specification

form

Started by Albert 9 years ago · 1 replies · 612 views
9 years ago

I currently have a textarea field in my form, which accepts public ssh keys. On submission, the form is then saved in a file and also emailed to me. I would like to modify it such that the contents of the textarea is saved as a separate file and preferably sent to me as an attachment of the email. Is there an easy way to achieve this?

Alternatively, I'd be happy to change textarea to file, but then I'd like the file to be renamed such that it corresponds to the form data - and again, attached to the email, if possible.

Any help or pointers would be appreciated!

9 years ago

I've just found user/plugins/form/classes/form.php, I reckon the solution is hidden somewhere in there.

Suggested topics

Topic Participants Replies Views Activity
General · by Hanns Mattes, 3 weeks ago
1 268 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 196 3 weeks ago
General · by Jerry Hunt, 3 weeks ago
2 331 3 weeks ago
General · by pamtbaau, 3 weeks ago
1 253 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 225 3 weeks ago