Upload issue - The file upload destination provided does not exist.
Posted: 28 March 2008 05:23 AM   [ Ignore ]
Newbie
Rank
Total Posts:  2
Joined  2008-03-26

Hi there

Trying to implement the upload feature.

Created a directory called ‘contact_form’ with 777 permissions. When publishing I can upload files to the directory.

When trying to upload a file using freeform I get the message ‘The file upload destination provided does not exist.‘

In the form I have:

{exp:freeform:form notify="x@x.com" file_upload="contact_form"}

<p>Name<br />
<
input type="text" name="name" value="" />
</
p>

<
p>Email<br />
<
input type="text" name="email" value="" />
</
p>

<
p>Question<br />
<
textarea name="question" /></textarea>
</
p>

<
p>upload<br />
<
input type="file" name="file1" />
</
p>

<
p>
<
input type="submit" name="submit" value="submit" />
</
p>

{/exp:freeform:form} 

host is fasthosts (I know…)

Server Path to Upload Directory: /home/fhlinux153/b/domain.co.uk/user/htdocs/form_uploads/contact_form/

Url upload directory: http://www.domain.co.uk/form_uploads/contact_form/

Can anyone shed some light on this?

TIA

Dave

Profile
 
 
Posted: 28 March 2008 06:39 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Dave,

You’re supposed to use the FULL Name of the Directory:
Ex: “My Upload Directory” or “Main Upload Directory” or “Contact Form”

You will also need this parameter:

template="your_freeform_notification_template" 

You might also want to consider using this parameter if you want the attachement sent to you:

send_attachment="yes" 

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 28 March 2008 07:10 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  2
Joined  2008-03-26

Pie Man clarifies the day!

file_upload =“Main Upload Directory”

The ‘file_upload’ parameter tells Freeform where to store attachments submitted in a given form. The upload preference provided refers to the file upload preferences you create in EE for weblog file uploads.

I was misunderstanding what was meant by ‘Main Upload Directory’ which is the ‘Descriptive name of upload directory’ where the files are to go.

The descriptive name for my contact form uploads is ‘contact form’

The form code now reads:

{exp:freeform:form notify="x@x.com" file_upload="contact form"}

<p>Name<br />
<
input type="text" name="name" value="" />
</
p>

<
p>Email<br />
<
input type="text" name="email" value="" />
</
p>

<
p>Question<br />
<
textarea name="question" /></textarea>
</
p>

<
p>upload<br />
<
input type="file" name="file1" />
</
p>

<
p>
<
input type="submit" name="submit" value="submit" />
</
p>

{/exp:freeform:form} 

All works now.

Thanks again!!

D

Profile