1.2.5 Email Contact Form - File uploading (image attachment)
1.2.5 Email Contact Form - File uploading (image attachment)
I have yet to get the 'file option' to properly send an image file (small jpg for testing purposes). Has anyone been able to get this nice feature to work? My general understanding is that the file should come across as an attachment in email itself.
Interested to hear if others have gotten this to work. Are there special mail settings that need to me met. Now using mail (defaults)
Cheers..
Interested to hear if others have gotten this to work. Are there special mail settings that need to me met. Now using mail (defaults)
Cheers..
- Oliver Georgi
- Site Admin
- Posts: 9905
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
- Oliver Georgi
- Site Admin
- Posts: 9905
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
EXCELLENT
works great now...
Very nice new feature for Wcms!
Not sure how easy it would be to implement the elegant date picker for email contact form.....(referring to the one used in article summary section)...this would be a nice new feature...did mention this in feature requests.
Oliver, I am sure I can speak for the whole communty, of what a great accomplishment Wcms is.
Respect,
works great now...
Very nice new feature for Wcms!
Not sure how easy it would be to implement the elegant date picker for email contact form.....(referring to the one used in article summary section)...this would be a nice new feature...did mention this in feature requests.
Oliver, I am sure I can speak for the whole communty, of what a great accomplishment Wcms is.
Respect,
- anthony.abraira
- Posts: 99
- Joined: Sun 11. Sep 2005, 07:42
- Location: Mars Hill, NC
- Contact:
Email Contact Form: Specify Values For Proper Function
Sorry for the stupid question, but somebody was bound to do it. In this case...mejavascript:emoticon(':oops:')
where do i set these values?
where do i set these values?
Oliver Georgi wrote:for upload use:
attachment = 1
additional values are:
exclude = php,asp,php3,php4,php5,aspx,cfm,js
folder = 'mypath/' -> default value is 'content/form/'
maxlength = 1024 -> Bits
accept = 'text/*'-> default is not set, any mime type
Try it
Oliver
You'll add the info to the 'value:' box for the 'file' form field. Here's what I'm using for one of my forms:
Code: Select all
attachment="1"
accept="text/*"
folder="phpwcms_ftp"
exclude="php,asp,php3,php4,php5,aspx,cfm,js,bat,exe,html,htm"
- anthony.abraira
- Posts: 99
- Joined: Sun 11. Sep 2005, 07:42
- Location: Mars Hill, NC
- Contact:
Thank you!
One more little detail to add was to add {upload} to the "template" section o n the bottom. But I got it now. Thanks a million!Ben wrote:You'll add the info to the 'value:' box for the 'file' form field. Here's what I'm using for one of my forms:
Code: Select all
attachment="1" accept="text/*" folder="phpwcms_ftp" exclude="php,asp,php3,php4,php5,aspx,cfm,js,bat,exe,html,htm"
Re: 1.2.5 Email Contact Form - File uploading (image attachment)
Oliver has made an update here: You no longer list extensions you want to exclude. You only list the extensions you want to allow. For example if you want to allow Word Documents and PDF you write (for newer versions, mine is 1.8.2):
Thank you Oliver!
Code: Select all
accept=".pdf,.docx"
attachment=1
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
http://eyelikeit.com/index.php?de_beispiele-webdesign
- Oliver Georgi
- Site Admin
- Posts: 9905
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
Re: 1.2.5 Email Contact Form - File uploading (image attachment)
Beginning with v1.8.7 the behaviour of
accept
has changed. From now on only file extensions are used – maybe I change or extend that again. But the <input file>
attribute accept
is a very soft option which can be overwritten easily on browser's side. Now the file extension is checked on server's side too. If this is set, the attribute exclude
is no longer needed.
Code: Select all
accept="pdf,docx"