On Mar 22, 2011, at 11:21 AM, sampolfonz wrote:
Greetings.
I am using formtoemailpro as the script for my forms. So far, so
good. I have a couple of issues though that I need some direction on.
My customer wants to be able to add an option on the form for users
to attach a photo or file of sorts. Is there any way that I can set
this up in freeway that would allow for the addition of an
attachment ?
According to the documentation for this processor, you certainly can.
Read on and decide for yourself whether the security ramifications are
worth the benefit.
Attach file uploads
The script will handle file uploads of any file type and send them
as attachments to the email that is sent to you. There is no limit
to the number of attachments you can send. You do not need to make
any configuration changes to the script to allow attachments, they
will be detected automatically but you must remember to code your
form correctly. The instructions tell you how to do this. You can
block files of certain types you specify or alternatively you can
specify the only file types you will accept. You can also set
maximum file size limits.
As far as preparing your form in Freeway, you need to do two things.
First, you have to add an attribute to the form itself, telling the
server and browser that it contains mixed content. From the main menu,
choose Page / Form Setup, then click on the Extended Form sub-tab.
Click new, and enter the following Name/Value pair:
- Name: enctype
- Value: multipart/form-data
Next, you need a file input. Tim Plumb has written an Action which
turns a normal Text input into a File input, or you can simply sketch
or insert a Text input field (just as you would any other form field)
on your page, and then while that input is selected, choose Item /
Extended from the main menu, and add a new Name/Value pair to it:
Make sure that you name this file input something meaningful, like
‘user_upload_file’, using the Name field in the third tab from the
left of the Inspector. Your form handler script will do the rest.
Please be sure that your client has a “sandboxed” computer, running
all the best anti-virus and anti-spyware medicine you can find, and
that they use this computer for accepting mail only while logged in as
a non-admin user. It’s a very good idea to have everything locked down
by a serious security professional if your client is using Windows,
and to delete Outlook or Outlook Express entirely from this computer,
substituting Mozilla Thunderbird or another security-minded e-mail
application.
Finally, even though it’s nearly impossible to infect a Mac through an
infected e-mail message, it’s still possible to pass along windows
virii through a Mac, so don’t figure you’re safe just because your Mac
didn’t blow up.
Walter
Also, can I design my own “submit” button ?
Finally, is there a way that the submit process could force the
customer to put in an email address for validation purposes? The
client is asking for the information to be validated before being
submitted to the business for publication on their cable tv network.
Thanks for the assistance.
Rich
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options