Custom Field Error message with File Upload
Posted: 27 July 2008 07:11 PM   [ Ignore ]
Newbie
Rank
Total Posts:  16
Joined  2008-07-26

I’m getting an error message saying

NoticeUndefined indexid in /home/keshding/public_html/eecore/system/modules/file_upload/mod.file_upload.php on line 191

and

No custom field was provided to receive the link created by file upload

And i dont understand why? I created a weblog and a custom field to hole my upload image and it just isn’t working for my.

ANY ADVISE....GREATLY APPRECIATED smile

Profile
 
 
Posted: 27 July 2008 08:40 PM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  16
Joined  2008-07-26

Here is what i have

{exp:weblog:entry_form weblog="submisson" return="site/showcase" }
<p>Title<br />
<
input type="text" name="title" id="title" value="{title}" size="50" maxlength="100" onkeyup="liveUrlTitle();" /></p>

<
p>URL Title<br />
<
input type="text" name="url_title" id='url_title' value="{url_title}" maxlength="75" size="50" /></p>

{exp:file_upload:upload_form form_name="entryform" destination="Main Upload Directory” field_name="myimage" return="graphembed/fileplace" rename_duplicates="yes"}

<p><input type=’file’ name=’userfile’ /></p>

<input type=’submit’ value=’Upload’ />
.
{/exp:file_upload:upload_form} >

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

{/exp:weblog:entry_form}

Now once i run this i keep getting a error message saying:
The following errors were encountered

* No custom field was provided to receive the link created by file upload.

but i did set up an custom-field doesn’t anyone know how to correct this error?

Profile
 
 
Posted: 28 July 2008 07:10 AM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3374
Joined  2006-10-18

lmb124,

I set you up a new post, and merged your posts together…

For starters, you have some “curly” quotes and sme other errors in your code…

Secondly,.. you need to follow the Documentation smile

Rather than building the form directly into the SAEF Form (which isn’t possible), You’re going to first need to create a link to a popup for your Upload Form:

Click here for Docs Example (as it will not let me post it in the forum)

Now, in your popup Upload form template, you will need to use this code:

{exp:file_upload:upload_form form_name="entryform" destination="Main Upload Directory" field_name="body" return="popups/file_upload_placement"

<p><input type="file" name="userfile" /></p
<
p><input type="submit" value="Upload" /></p

{/exp:file_upload:upload_form}

Then, you will need this code place into another template (the File Placement template):

{exp:file_upload:upload_confirm field_replace="replace"

<p>File sucessfully uploaded!</p
<
input type="submit" value="Place Image and Close Window" onclick="fileplacer();window.close();" /> 

{/exp:file_upload:upload_confirm}

Let me know if this helps smile

 Signature 
Profile
 
 
Posted: 29 July 2008 11:28 AM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  16
Joined  2008-07-26

OK i got it to work. smile
I guess i had a BIG miss understanding on how it worked. But i have it now and it was relatively simple.

Profile
 
 
Posted: 29 July 2008 12:04 PM   [ Ignore ]   [ # 4 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3374
Joined  2006-10-18

Good to hear smile

And to be honest… the first time I tried it out a long time ago, I did roughly the same thing rasberry

 Signature 
Profile