Page 1 of 2

File-upload through Formbuilder

Posted: Thu Jun 21, 2007 1:33 pm
by peugeot-304
I'm trying to set up a kind of market place using the Formbuilder and Formbrowser modules.
Visitors should be able to fill in a form on the item they want to sell or search for and also be able to include a picture of the item.

I installed Formbrowser 0.3 and Formbuilder 0.1 with CMSMS 1.0.8 on my local test machine running Xampp.
Now I'm trying to find out hoe the file-upload works. I included it in the form I designed for the purpose and it is nicely displayed.
Browsing for and selecting a file also works.
But after submission of the form I can't retrieve where the attached file is gone or saved and it's also not displayed when viewing the list through Formbrowser.
All the other information is nicely displayed except for the attached picture.

Any hint or advice would be appreciated.

Thanks
Dieter

Re: File-upload through Formbuilder

Posted: Thu Jun 21, 2007 1:35 pm
by calguy1000
file uploads only get sent out as attachments when using an email disposition.  the other implementations are not done yet.

Re: File-upload through Formbuilder

Posted: Thu Jun 21, 2007 7:36 pm
by peugeot-304
Thanks Calguy,

think I have to wait for that option then and create the little "market place" without this possibilty.

Dieter

Re: File-upload through Formbuilder

Posted: Wed Jul 25, 2007 4:29 am
by robsta
Clguy can you define an email-disposition - I'm having no end of trouble sending files via formbuilder I just get a variable not the file...

Rob

Re: File-upload through Formbuilder

Posted: Sat Jul 28, 2007 6:32 pm
by Traill
robsta wrote: Clguy can you define an email-disposition - I'm having no end of trouble sending files via formbuilder I just get a variable not the file...

Rob
I'm having exactly the same problem - in testing the form, I only get emailed a couple of letters like "m6_22", and not the actual file I submitted... any help is greatly appreciated!

Re: File-upload through Formbuilder

Posted: Wed Aug 01, 2007 2:03 am
by atired
I'm having the same problem here. I'm new to CMSMS and any help would be of great help ;)

Re: File-upload through Formbuilder

Posted: Fri Aug 24, 2007 1:45 pm
by milehigh
I am having the same problem as well.

This is a perfect example of Ted's recent blog post regarding the user-submitted modules. CMSMS is just SO CLOSE to blowing away any competition but this 3rd party module quality is very frustrating - especially for a very commonly used module like a form builder.

I'll keep playing with this and post anything I find regarding the file upload.

Re: File-upload through Formbuilder

Posted: Fri Aug 24, 2007 2:27 pm
by milehigh
I see there was an update and I updated to Formbuilder 0.4.1 and instead if gettiing the filenames now I get this for the image fields:

Image 1: [unspecified]
Image 2: [unspecified]

Re: File-upload through Formbuilder

Posted: Fri Aug 24, 2007 2:45 pm
by calguy1000
what do you mean by an 'image' field.  I didn't think that there was an image field type in FB.

what does your form look like?

Re: File-upload through Formbuilder

Posted: Fri Aug 24, 2007 2:57 pm
by milehigh
Thanks for the response:

Field Name: Image 1
Field Type: File Upload
Req'd : False
Infrormation: Max. Size: kb, Extensions:


Field Name: Image 2
Field Type: File Upload
Req'd : False
Infrormation: Max. Size: 2500kb, Extensions: jpg,gif,jpeg,GIF,JPEG,JPG,bmp,BMP

$fld_22 and $fld_23 are now being passed as unspecified.


Submission template:
FormBuilder Submission
Form Name: {$sub_form_name}

Date of Submission: {$sub_date}

Your server: {$sub_host}

IP address of person using form: {$sub_source_ip}

URL of page containing form: {$sub_url}



Full Name: {$fld_18}

Email Address: {$fld_19}

Image 1: {$fld_22}

Image 2: {$fld_23}

Describe Your Boat: {$fld_20}

Send it: {$fld_21}

Re: File-upload through Formbuilder

Posted: Fri Aug 24, 2007 3:08 pm
by calguy1000
I'll look into it tonite

Re: File-upload through Formbuilder

Posted: Fri Aug 24, 2007 4:09 pm
by alby
milehigh wrote: This is a perfect example of Ted's recent blog post regarding the user-submitted modules. CMSMS is just SO CLOSE to blowing away any competition but this 3rd party module quality is very frustrating - especially for a very commonly used module like a form builder.
True, but you don't forget that this module is very complicated.

Alby

Re: File-upload through Formbuilder

Posted: Fri Aug 24, 2007 8:45 pm
by milehigh
alby wrote: True, but you don't forget that this module is very complicated.
Alby
I completely agree!! All other aspects seem to be working perfectly.

I reinstalled an older version and got

Image: m2_8 instead of Image: [unspecified] output to the email but it still wouldn't attach the image (jpg)

If anybody posts anything you'd like to see tried I'm more than happy to help. I appreciate the responses.

Re: File-upload through Formbuilder

Posted: Sat Aug 25, 2007 1:01 am
by calguy1000
Okay, it got broke (for sure) in the 0.4 process somewhere.  I just checked in the fixes to svn.  A new version of formbuilder should be out soon.

By the way, the code for file handling is in the base class for the email based dispositions, but I've only tested with the 'Send Email To Specified addresses' disposition.

Re: File-upload through Formbuilder

Posted: Mon Aug 27, 2007 8:49 pm
by moorezilla
UPDATE: I tried the new DispositionEmailBase.class.php from svn and it still doesn't send with attachment.

UPDATE: I missed FileUploadField.class.php in svn. It works when both of these files are updated to svn. Sorry.