The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
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, 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 |