Forums / General Questions / allow file upload on contact us page

allow file upload on contact us page

Locked

Views: 1,052

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
11 Jan 2012, 10:01 PM
#1
bluelightnin6 avatar

bluelightnin6

New Zenner

Join Date:
Dec 2011
Location:
USA
Posts:
77
Plugin Contributions:
0

allow file upload on contact us page

How do I enable a file upload attachment section to my contact us page? I am using zen cart 1.3.9h

Owner / Admin
http://www.moebow.com

11 Jan 2012, 10:04 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,683
Plugin Contributions:
0

Re: allow file upload on contact us page

Silly question ... Why?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

11 Jan 2012, 10:08 PM
#3
bluelightnin6 avatar

bluelightnin6

New Zenner

Join Date:
Dec 2011
Location:
USA
Posts:
77
Plugin Contributions:
0

Re: allow file upload on contact us page

I have an ebook ecommerce site and would like customers to be able to send me an ebook file if they wish to list their ebook with my site..

Owner / Admin
http://www.moebow.com

12 Jan 2012, 6:59 PM
#4
bluelightnin6 avatar

bluelightnin6

New Zenner

Join Date:
Dec 2011
Location:
USA
Posts:
77
Plugin Contributions:
0

Re: allow file upload on contact us page

Anyone know how to do this?

Owner / Admin
http://www.moebow.com

12 Jan 2012, 9:42 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: allow file upload on contact us page

You'd need to add an input field to select the file, then write code to upload it, then write more custom code to save it to a safe place which you've already set up on your site so it can't be accessed by unauthorized persons, then write more code to pass that file's contents to the email, and then make sure your emails don't end in a spam folder.

There's no built-in feature which sends attachments via email, so I can't point you to any example core code to follow, but those are the broad steps you'd need to consider.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

13 Jan 2012, 12:00 AM
#6
bluelightnin6 avatar

bluelightnin6

New Zenner

Join Date:
Dec 2011
Location:
USA
Posts:
77
Plugin Contributions:
0

Re: allow file upload on contact us page

thanks I just used a 3rd party form builder

Owner / Admin
http://www.moebow.com