The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
File upload field not working - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: File upload field not working (/showthread.php?tid=1395)



File upload field not working - jimdiscinpa - Jun 21st, 2011

Hello. I have FormTool 2.0.6 installed. I have a simple testimonial form where I want the option of uploading a photo file. I did check that there would be an upload field.

Here is a link to a snapshot of my Formtools "files" window.
FormTools"fileshttp://screencast.com/t/xuE2gM7hs

Here is my code. Do I need to add any more code to the html form?
<form action="http://www.premiumprotectivecoatings.com/form_tools/process.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="form_tools_form_id" value="9" />
<table border="0" cellspacing="0" cellpadding="5">
<tr>
<td class="text">First Name
<label></label>
: </td>
<td class="text"><input name="FirstName" type="text" id="FirstName" value="" size="25"></td>
</tr>
<tr>
<td class="text">Town
<label></label>
: </td>
<td class="text"><input name="Town" type="text" id="Town" value="" size="25"></td>
</tr>


<tr>
<td class="text">
<label for="testimonial">Enter your<br>
testimonial here.</label></td>
<td class="text"><textarea name="testimonial" id="testimonial" cols="45" rows="7"></textarea></td>
</tr>
<tr>
<td class="text">

<label for="upload">Upload a photo</label>
</td>
<td class="text"><input type="file" name="upload" id="upload"></td>
</tr>

<tr>
<td class="text">
</td>
<td class="text">
<input type="submit" name="submit" id="submit" value="Submit">
</td>
</tr>
</table>
</form>

Thank you forum members for any help.


RE: File upload field not working - Ben - Jun 22nd, 2011

Hi Jim,

Sorry you're having trouble!

So when you click the "Test Folder Permissions" and "Confirm Folder-URL Match" buttons on the Settings -> Files page, you get both success messages?

Secondly, try this: in Form Tools, create a submission and upload the same file you're trying to do so with your form. Does it upload properly there?

- Ben


RE: File upload field not working - jimdiscinpa - Jun 22nd, 2011

Thanks, Ben for the post.
Yes I got both success messages.
How do I CREATE a submission from within my FormTools admin?

(Jun 22nd, 2011, 4:29 AM)Ben Wrote: Hi Jim,

Sorry you're having trouble!

So when you click the "Test Folder Permissions" and "Confirm Folder-URL Match" buttons on the Settings -> Files page, you get both success messages?

Secondly, try this: in Form Tools, create a submission and upload the same file you're trying to do so with your form. Does it upload properly there?

- Ben




RE: File upload field not working - Ben - Jun 22nd, 2011

So far so good!

To add submissions directly within Form Tools, you need to enable it for the View. Just edit one of your form Views and on the first tab, set the "May add submissions" setting to "yes". Then view the form submissions (with the View you just changed) and click the "Add" button.

Let me know how it goes!

- Ben