Advertisement:

Author Topic: [SOLVED] Allow attached files in contact publisher form  (Read 1556 times)

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
[SOLVED] Allow attached files in contact publisher form
« on: October 14, 2013, 09:15:11 pm »
this feature is not working? it would be great if it did! I have it selected on in admin>settings  do I need to turn it on somewhere else? also, I would like that option of uploading only pdfs if possible.

using bender osclass 3.2.1
« Last Edit: October 14, 2013, 10:51:09 pm by design »

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: Allow attached files in contact publisher form
« Reply #1 on: October 14, 2013, 10:09:27 pm »
just as an aside I tried it in the demo of modern- so I could code steel, but it didn't work there either. is this an obsolete function due to spam or malicious behavior or something?

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: Allow attached files in contact publisher form
« Reply #2 on: October 14, 2013, 10:35:14 pm »
got this from one of the job themes,
I just added it in the form section on the item-sidebar.php
Code: [Select]
<div class="control-group"><?php if( osc_item_attachment() ) { ?>
                     <label for="subject"><?php _e('Your file''bender') ; ?></label> <?php ContactForm::your_attachment() ; ?>
                     <?php ?></div>


also add this to the "form action" string:

Code: [Select]
enctype='multipart/form-data'
« Last Edit: October 14, 2013, 10:50:44 pm by design »