I’m having trouble getting the file_upload to actually upload files via free-form.
I have a template in which users can select what type of form they need to use, one a straight forward contact form, the other takes in more information and allow “Guests” to
upload a file if they need to.
Both forms record the posted data provided. With one exception, when a file is uploaded, it does not transfer to any directory.
I have the CP Home › Admin › System Preferences › Security and Session Preferences - Process form data in Secure Mode? - set to NO to allow Site Guests to upload files.
My form tag looks like:
{exp:freeform:form form_name="inquiry_submission" form_id="inquiry_form" return="" notify="email@address.com" file_upload ="Inquiries" template="contact_response" required="contact_name|contact_email"}
And my file input looks like:
<div class="contactfield"><label for="project_att">Attachment:</label><br />
<input type="file" name="project_att" id="project_att" />
</div>
I have created a new Upload location and it receives files when uploading via the Publish page.
Any clue what I could be missing?
Oh, and my directory permissions are set to “777”. I have only been testing while logged in. I have yet to try and test as a Guest.
