1 of 4
1
Just bought Module and need help
Posted: 02 August 2007 07:02 AM   [ Ignore ]
Newbie
Rank
Total Posts:  12
Joined  2007-04-25

I installed the module and am gettiung the below error msg:
“""""
The following errors were encountered

* No form name was provided to receive the link created by file upload. Please contact customer service.
“""""

Is the form name this:"exp:weblog:entry_form “, so it would be entry_form, correct?

Please advise.

Profile
 
 
Posted: 02 August 2007 07:43 AM   [ Ignore ]   [ # 1 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

No. {exp:weblog:entry_form} is how you call EE’s SAEF, but the file upload module requires that you provide that name of the form where the field is that will receive the HTML link to the file you upload. If you are using this module with the stand-alone entry form, the form name will be ‘entryform’ (no underscore).

 Signature 

Ingmar Greil

Profile
 
 
Posted: 02 August 2007 07:55 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  12
Joined  2007-04-25

Is there no documentation for this?
I’m really new at this, so your help would be greatly appreciated.
How do I use this module? Do I input some code into my SAEF? Do need new pages?

This is what I have:

<div id="upload">
All Fields Required<br><br>
{if logged_in}YOU ARE LOGGED IN: {SCREEN_NAME}{/if}

{exp:weblog:entry_form weblog="submissions" return="site/index"}

Title

<input type="text" name="title" id="title" value="{title}" size="50" maxlength="100" onkeyup="liveUrlTitle();" /><br>

URL Title

<input type="text" name="url_title" id=’url_title’ value="{url_title}" maxlength="75" size="50" />
<br>

Upload your Work: (test)<br>

{exp:file_upload:upload_form form_name=\"entryform\" destination=\"Put your Stuff Here\” field_name=\"body\" return=\"popups/file_upload_placement\"}

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

<input type=’submit’ value=’Upload’ >

{/exp:file_upload:upload_form}
<br><br>

{custom_fields}
{if required}* {/if}{field_label}


{if textarea}
<label for="{field_name}"></label>
<textarea name="{field_name}" dir="{text_direction}" cols="50" rows="{rows}" onclick="setFieldName(this.name)">{field_data}</textarea>
{/if}



{if textinput}
<label for="{field_name}"></label>
<input type="text" dir="{text_direction}" name="{field_name}" value="{field_data}" maxlength="{maxlength}" size="50" onclick="setFieldName(this.name)" />
{/if}



{if pulldown}
<label for="{field_name}"></label>
<select name="{field_name}">
{options}<option value="{option_value}"{selected}>{option_name}</option>{/options}
</select>
{/if}

{/custom_fields}
<input type="submit" name="submit" value="Submit" /><br>
</a>

{/exp:weblog:entry_form}
</div>

Profile
 
 
Posted: 02 August 2007 07:59 AM   [ Ignore ]   [ # 3 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09
eware3000 - 02 August 2007 07:55 AM

Is there no documentation for this?

It’s built-in in the module, actually. Did you go to CP > Modules > File Upload? It’s explained in somewhat more detail there. I’ll try to find a simple working sample for you.

 Signature 

Ingmar Greil

Profile
 
 
Posted: 02 August 2007 12:40 PM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  12
Joined  2007-04-25

That would be great. I’d really appreciate it.  If you can’t find an example, do you think you could give me a list of things to do (to get me started in the right direction).
Thanks!

Profile
 
 
Posted: 02 August 2007 04:26 PM   [ Ignore ]   [ # 5 ]
Newbie
Rank
Total Posts:  12
Joined  2007-04-25

Ingmar,
I finally figured it out grin
But I have one more question for you.
How do I retrieve the images I upload. For instance say I upload several and want to display 1 or two of them throughout my site. I noticed that the img tag in the database is a bit funky.

Thanks to advise. grin

Profile
 
 
Posted: 02 August 2007 09:33 PM   [ Ignore ]   [ # 6 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

Great. Can you post your basic template here for posteriority’s sake? As to retrieving the images, I am not sure what exactly you mean? In what way is the img tag “funky”?

 Signature 

Ingmar Greil

Profile
 
 
Posted: 03 August 2007 05:39 AM   [ Ignore ]   [ # 7 ]
Newbie
Rank
Total Posts:  12
Joined  2007-04-25

So for anyone who had a bit of trouble, like myself, see below:

If you have the original EE upload utility in the SAEF working then begin here. If not go to: CP > Modules > File Upload and see the instructions:

In addition to your SAEF template. You will create 2 more templates. (ie_upload_template.php and file_upload_placement.php)

1.) In your SAEF. You want to link to “file_upload_template.php” in your anchor tag, So instead of “{upload_url}” use something like this: {path="site/file_upload_template"}

2.) The contents of “file_upload_template.php” :

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

Notes:
form_name: “entryform” If using the SAEF, this is the correct name
field_name: “myimage” This is the name of your custom field. The place where the image html text (ie. img src="..." ) will be input to.
return: “site/file_upload_placement” the location of your file upload placement template
rename: “yes” To give each image a unique id (images of the same name will not overwrite one another)

There’s more info in CP > Modules > File Upload.


3.) As you can see, you are now linking to “file_upload_placement.php” as well, it’s contents:

{exp:file_upload:upload_confirm field_replace="replace"}
<input type=’submit’ value=’Place Image and Close Window’ onclick=’fileplacer();window.close();’ />
{/exp:file_upload:upload_confirm}

*Also, put this: {javascript} in this in between the head html tags of the “file_upload_placement.php” document.

There’s more info in CP > Modules > File Upload.

How do I put my uploaded image on my site?

You can use the plugin Extract URL as such:

{exp:weblog:entries weblog="MY_WEBLOG" limit="5" rdf="off"}
{exp:extract_url}{myimage}{/exp:extract_url}

{/exp:weblog:entries}

This is just a quick start for people who are just learning. Hope it helps someone.

Profile
 
 
Posted: 27 August 2007 09:17 AM   [ Ignore ]   [ # 8 ]
Newbie
Rank
Total Posts:  14
Joined  2007-08-27

Boy, I sure am confused about this module. I think perhaps I’m missing something in the first step with the SAEF.

Here’s what I’ve got on my SAEF

A “File Upload” link that pops up our little window. Is there supposed to be a field in the SAEF that receives the file link? And what does that field look like?

Thanks for any help.

Profile
 
 
Posted: 27 August 2007 09:33 AM   [ Ignore ]   [ # 9 ]
Newbie
Rank
Total Posts:  12
Joined  2007-04-25

Chris,

Yes you need a custom filed in your SAEF to receive the link.

Profile
 
 
Posted: 27 August 2007 09:36 AM   [ Ignore ]   [ # 10 ]
Newbie
Rank
Total Posts:  14
Joined  2007-08-27

Thanks, eware. Would you mind showing me what that looks like in your SAEF?

Profile
 
 
Posted: 27 August 2007 09:37 AM   [ Ignore ]   [ # 11 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

eware3000 is absolutely correct on this one. Can you show us what you’ve got?

 Signature 

Ingmar Greil

Profile
 
 
Posted: 27 August 2007 09:42 AM   [ Ignore ]   [ # 12 ]
Newbie
Rank
Total Posts:  14
Joined  2007-08-27

I’m using the following code taken from the SAEF example in the User Guide.....

Profile
 
 
Posted: 27 August 2007 09:43 AM   [ Ignore ]   [ # 13 ]
Newbie
Rank
Total Posts:  14
Joined  2007-08-27

Argh. My code keeps disappearing from between the “code” tags.

Some working code would be hugely appreciated.

Profile
 
 
Posted: 27 August 2007 09:52 AM   [ Ignore ]   [ # 14 ]
Newbie
Rank
Total Posts:  12
Joined  2007-04-25

Chis see my code below:

<
div id="upload">
All Fields Required<br><br>
{if logged_in}YOU ARE LOGGED IN{SCREEN_NAME}{/if}

{exp
:weblog:entry_form weblog="submissions" return="site/index"}

Title

<input type="text" name="title" id="title" value="{title}" size="50" maxlength="100" onkeyup="liveUrlTitle();" /><br>

URL Title

<input type="text" name="url_title" id=’url_title’ value="{url_title}" maxlength="75" size="50" />
<
br>

Upload your Work: (test)<br>

{exp:file_upload:upload_form form_name=\"entryform\" destination=\"Put your Stuff Here\” field_name=\"body\" return=\"popups/file_upload_placement\"}

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

<input type=’submit’ value=’Upload’ >

{/exp:file_upload:upload_form}
<br><br>

<!--Here is the Custom Field to receive the link-->
{myimage}

<input type="
submit" name="submit" value="Submit" /><br>
</a>

{/exp:weblog:entry_form}
</div>

Profile
 
 
Posted: 27 August 2007 09:56 AM   [ Ignore ]   [ # 15 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

Try posting your code without tags. Although I have no idea why it should disappear.

 Signature 

Ingmar Greil

Profile
 
 
   
1 of 4
1