Page 1 of 1

File Upload not attached on Form Submission (Any updates?)

Posted: Sun Nov 04, 2007 9:45 pm
by JackOutoftheBox
I recently upgraded to CMS 1.2 for an issue I was having with the forum, and I was hoping it also might solve an issue I was having with the "file upload" feature in the form builder. It seems to have helped, but not corrected the problem.

I installed the most recent version of From Builder 0.4.4, and it kept my form. When, I tested it did not have the file attached.

Before, I was getting an "unspecified" message in the Photo Submission field, but now I'm getting the actual name of the file ... just not the file. Is there something else I need to do?

Below is the submission template I am using:

Code: Select all

<h1>Speaker Form Submission</h1>
<strong>Form Name</strong>: {$sub_form_name}<br />
<strong>Date of Submission</strong>: {$sub_date}<br />
<strong>Your server</strong>: {$sub_host}<br />
<strong>IP address of person using form</strong>: {$sub_source_ip}<br />
<strong>URL of page containing form</strong>: {$sub_url}<br />

<hr />

<strong>Your Name</strong>: {$fld_4}<br />
<strong>Title</strong>: {$fld_19}<br />
<strong>Company</strong>: {$fld_18}<br />
<strong>Email Address</strong>: {$fld_5}<br />
<strong>Website</strong>: {$fld_20}<br />
<strong>Bio / Topic Information</strong>: {$fld_7}<br />
<strong>Photo Submission</strong>: {$fld_21}<br />

Any assistance or direction is appreciated. I have searched the forum for similar issues and found many, but no solutions beyond trying to improve the module. Is that still being worked on?

Re: File Upload not attached on Form Submission (Any updates?)

Posted: Mon Nov 26, 2007 2:54 pm
by Chris..S
Are you using PHP4?

I had a similar problem using PHP4.  My correction to the missing attachments is:

classes/dispositionEmailBase.class.php
@156
- if( get_class($others[$i]) == 'fbFileUploadField' )
+ if( strtolower(get_class($others[$i])) == 'fbfileuploadfield' )

For the missing [unspecified] value when no file was supplied, my correction is:
@216
+        else
+        {
+        $replVal = $unspec;
+        }

Re: File Upload not attached on Form Submission (Any updates?)

Posted: Wed Dec 05, 2007 9:03 pm
by JackOutoftheBox
Thank you for responding! But, I'm not sure where I add that value? Can you further explain?