Local file attachment – get filename from form field?
-
I’m trying to set up a contact form where the user enters his/her e-mail address and chooses a file they would like to receive via e-mail.
Here’s what I have in my form for the file selection:
[select* requestedfile include_blank "Coding Standards|blogs.dir/5/files/2008/11/coding-standards.ppt" "CCS3 Cheat Sheet|blogs.dir/5/files/2012/09/css3-cheat-sheet.pdf" "WP Theme customization|blogs.dir/5/files/2010/07/wp-customization.pdf" ]
In the Mail(2) section I tried using the
[requestedfile]
tag in the file attachments field, but it doesn’t seem to work. If I use one of the filenames directly (instead of the tag) it works, so I suppose CF7 doesn’t detect it’s a local file when expanding from the form tag.Is it possible somehow? Better yet, if I could have part of the path fixed, like using:
blogs.dir/5/files/[requestedfile]
so only part of the path would be visible in the HTML code.Thanks in advance!
- The topic ‘Local file attachment – get filename from form field?’ is closed to new replies.