Confused by the “no field provided” error, please help! 
Posted: 23 August 2007 01:48 PM   [ Ignore ]
Jr. Member
RankRank
Total Posts:  39
Joined  2006-07-16

Hey guys. I realize you’re busy, but I could really use your help in overcoming this final little snag. I need to get simplified file uploading happening quickly, on 3 sites. If I can just get one going, I’m all set & can purchase shareware licenses for the other 2.

I’ll even write CSS-ified examples and screenshots for you, so other people don’t bug you as much about this module!

Here’s the problem — I’m confused because I’m getting this error in the popup window instead of the uploading form.

“No field was provided to receive the link created by file upload. Please contact customer service.”

In my code on file_upload_template (which appears in a popup window), the code is as in the documentation (with my own downloads directory title, and field_name in the weblog and on the originating SAEF where it’s supposed to place the file reference).

{exp:file_upload:upload_form form_name="entryform" destination="Main Downloads Directory” field_name="document_url" return="docs/file_upload_placement" rename_duplicates="yes"}
<input type=’file’ name=’userfile’ />
<input type=’submit’ value=’Upload’ />
{/exp:file_upload:upload_form}

In my weblog, and in the original SAEF that calls the popup template with file_upload, I definitely have a field called document_url — I’ve double-checked. The SAEF form is definitely called entryform. I tried changing the field to field_id_33 (which is document_url’s actual field #), and even to ‘userfile’, but no avail. I can’t see to get around this error, and it just seems like I’m missing something simple.

Thanks again for your help!

Profile
 
 
Posted: 23 August 2007 02:11 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

OS,

In your parameters, for destination, Main Upload Directory, do I see a curly quote at the end of directory? If I do, then EE can’t read the remaining parameters properly. Change that quote and or move the ordering of the parameters to test.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 23 August 2007 04:23 PM   [ Ignore ]   [ # 2 ]
Jr. Member
RankRank
Total Posts:  39
Joined  2006-07-16

Oh my gosh. That was it… I can’t believe it.

OK. Pretty awesome! Thanks!
I’ll try to get this working just as I want it to (with CSS, additional Javascript) on one site, then knock over the others in a few days.

Thanks so much again!

Profile
 
 
Posted: 23 August 2007 10:19 PM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

Word!

 Signature 

Mitchell Kimbrough

Profile