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

Filename specification

form

Started by Albert 9 years ago · 1 replies · 668 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 Andy Miller, 2 days ago
0 69 2 days ago
General · by Veehem, 3 days ago
0 111 3 days ago
General · by milkboy, 4 days ago
0 113 4 days ago
General · by ian russell, 2 weeks ago
2 204 1 week ago
General · by pamtbaau, 1 month ago
2 462 2 weeks ago