Ulti Clocks content

File Upload Type Filtering in FaclieForms / Breezing Forms

sand Here is how to use global php variables in your Breezing Forms / FacileForms form.
facileforms, file, forms, upload, type, breezing, code, work, use, javascript, row, components, checking, template, hack, comes, process, line, trim, types, formrow, change, following, php, dialog, noticed, filter, build, joomla, classicmode, filetypes, present, seperated, list, comma, form, quickmode, open, allowed

Home Joomla - Breezing Forms - Tips File Upload Type Filtering in FaclieForms / Breezing Forms
File Upload Type Filtering in FaclieForms / Breezing Forms
  • Joomla 1.5
  • Breezing Forms/
    FacileForms

If you use the ClassicMode to build your forms in Breezing Forms / FacileForms you'll have noticed there's no way to filter your filetypes in the File Upload.
Here is how to use the Javascript code already present in QuickMode Breezing Forms / FacileForms.



Breezing Forms / FacileForms form upload


Open the form upload dialog and fill in a comma seperated list of your allowed file types.

Then here comes the hack to make it work.
Go to components/com_facileforms/facileforms.process.php and around line 1924 change the code to the following...





#if ($row->type=='File Upload' && trim($this->formrow->template_code) != '') {
if ($row->type=='File Upload') {

Now the javascript file type checking will work!

Breezing Forms / FacileForms file type filtering



Add this page to your favorite Social Bookmarking websites
Digg! Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! Slashdot! Technorati! StumbleUpon! Spurl! Newsvine! Furl! Fark! Yahoo! Netvouz! Mister-Wong! RawSugar! Ma.gnolia! Squidoo! DZone! Swik!
LAST_UPDATED2
 



File Upload Type Filtering in FaclieForms / Breezing Forms



Here is how to use global php variables in your Breezing Forms / FacileForms form.


facileforms, file, forms, upload, type, breezing, code, work, use, javascript, row, components, checking, template, hack, comes, process, line, trim, types, formrow, change, following, php, dialog, noticed, filter, build, joomla, classicmode, filetypes, present, seperated, list, comma, form, quickmode, open, allowed