Forums / Setup & design / How to make contact form with file upload

How to make contact form with file upload

Author Message

Marco Zinn

Thursday 07 February 2008 7:50:07 am

Hi there,

i want to modify a contact form (which is based on information collectors) by adding a file attribute.
The user filling out the form should be able to upload a file to the ez system.

Two question here:
1- As far as i can see, that file attribute does not allow to set the information collector "flag". I guess, this is a design decision. Do you have an idea on how to solve or mimic the needed feature?
2- If the above can be solved, how can we attach the uploaded file to the mail, that is sent to the receiver? This would require a function to encode a binary file as a mail attachment.
Or, how can I at least send a link to the file's location on the server with that email?

I know, that this procedure may introduce security issues...

The only solution that i can think of at the moment is to drop the information collector concept here and let the user (who may be anonymous) create an object (just like a forum post) and use the notification system to inform a user about new objects.
But still, i think, i cannot attach the file to the notification mail, right?

Marco
http://www.hyperroad-design.com

Felix Laate

Thursday 07 February 2008 11:19:41 am

Hi Marco!

I choose to do this with a separate module: http://ez.no/developer/contribs/applications/sendappform

Could this help you?

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Marco Zinn

Thursday 14 February 2008 5:34:41 am

Hi Felix,

thank you for the hint. I saw this extension some time ago, but forgot about it in the meantime.
I'll give it a try, it looks good.

Marco
http://www.hyperroad-design.com