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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Filename specification

form

Started by Albert 9 years ago · 1 replies · 560 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 Jerry Hunt, 4 days ago
2 80 10 hours ago
General · by pamtbaau, 15 hours ago
1 51 15 hours ago
General · by Andy Miller, 1 day ago
0 45 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 40 5 days ago