1 of 2
1
Field Replace just not working for me. 
Posted: 16 September 2008 09:07 AM   [ Ignore ]
Jr. Member
RankRank
Total Posts:  33
Joined  2008-04-14

I seem to understand most of this but the custom field is not getting updated.
After reading the numerous post, I am still no closer to resolution. shut eye

I have a SAEF form with a link and a text field.

<br />
<
input type="text" name="field_id_66" />

Click the link above and a popup opens with this form.

{exp:file_upload:upload_form form_name="entryform" destination="Video Upload Directory" field_name="video" return="_incl/file_upload_placement" rename_duplicates="yes"}
<p><input type="file" name="userfile" /></p>
<
p><input type="submit" value="Upload" /></p>
{/exp:file_upload:upload_form}

This popup form gets submitted to the same popup window where I have this:

{embed=_incl/doctype}
<html>
<
head>
{javascript}
</head>
<
body>
{exp:file_upload:upload_confirm field_replace="replace"}
<p>Video successfully uploaded!</p>
<
input type="submit" value="Place Video and Close Window" onclick='fileplacer();window.close();' />
{/exp:file_upload:upload_confirm}
</body>
</
html>

This routine is definitely uploading the file to the correct directory, but no updating of the custom field I named “video”.
The “Place Image and Close Window\” simply returns the homepage in the popup.

Now I realize this is covered in more than 1 post but nothing I’ve tried has worked.

Profile
 
 
Posted: 23 September 2008 12:59 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

wecreateyou,

Are you still having this issue? smile

I’m not sure how this post fell through the cracks, but I apologize for the inconvenience…

 Signature 
Profile
 
 
Posted: 23 September 2008 02:52 PM   [ Ignore ]   [ # 2 ]
Jr. Member
RankRank
Total Posts:  33
Joined  2008-04-14

Yep. I haven’t had any luck, I’ll gladly pay for it again if I can get it working. grin

Thanks for getting back, I thought I had offended you guys or something. again thanks.

Profile
 
 
Posted: 23 September 2008 02:57 PM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

Oh yeah… I had forgot about all that… smile

Offend? Impossible! rasberry

Can I have a poke into your CP to do some tinkering? LOL

 Signature 
Profile
 
 
Posted: 23 September 2008 03:17 PM   [ Ignore ]   [ # 4 ]
Jr. Member
RankRank
Total Posts:  33
Joined  2008-04-14

Thanks Pie Man,
But unfortunately, it’ll be about a week before I can give you a URL. I’m ok with getting back to you when I can get you inside. LOL

Profile
 
 
Posted: 23 September 2008 03:54 PM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

That’s ok… just let me know smile

 Signature 
Profile
 
 
Posted: 24 September 2008 06:50 AM   [ Ignore ]   [ # 6 ]
Newbie
Rank
Total Posts:  4
Joined  2008-09-23

Im having the same problem as wecreateyou.

I think the problem is from the fact that fileplacer() isnt declared....It least, its whats firebug is telling me!

My file_upload_placement.php file contains only this:

{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}

 Signature 

Espace Logique

Profile
 
 
Posted: 24 September 2008 06:57 AM   [ Ignore ]   [ # 7 ]
Jr. Member
RankRank
Total Posts:  33
Joined  2008-04-14

For the record, I think it’s the javascript as well. it might not be playing well with other javascript like jquery.?

What do you think Pie Man? smile

Profile
 
 
Posted: 24 September 2008 07:07 AM   [ Ignore ]   [ # 8 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

Kenny,

You need to include the {javascript} variable in that template wink

wecreateyou,

I think that I have been able to get this to work several times, hahaha LOL rasberry
The most common issue with File Upload module is misunderstandings with the way it works. And discussing it is usually difficult, so with a quick CP access I can usually solve the issue within 20 seconds wink

 Signature 
Profile
 
 
Posted: 24 September 2008 07:08 AM   [ Ignore ]   [ # 9 ]
Newbie
Rank
Total Posts:  4
Joined  2008-09-23

Well....i just realized that I didnt insert the {javascript} tag in file_upload_placement.php. Now that I did, it “almost” works...In fact if your using it with a SAEF, you need to use the EE field name, i.e. field_id_XX and not “video” in your case.

Hope this help

 Signature 

Espace Logique

Profile
 
 
Posted: 24 September 2008 07:11 AM   [ Ignore ]   [ # 10 ]
Newbie
Rank
Total Posts:  4
Joined  2008-09-23

That was quick!

Thanks!

On a side note, do you know if its possible to give a specific form name to a SAEF rather than “entryform”?  My problem is that I have 2 SAEF in my page so, in order to get the fileplacer() working the SAEF using the File Upload module needs to be placed first.

 Signature 

Espace Logique

Profile
 
 
Posted: 24 September 2008 07:24 AM   [ Ignore ]   [ # 11 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

Hmmm.. I dont think it’s a good idea to have two SAEF Forms in the same template… I thought it usually generates errors doesn’t it?

Otherwise, there appears to be no parameter for this, but you could try:

form_id="entryform"

Or

form_name="entryform"

Though it does play off of the ID, so the first is what you’d want…

 Signature 
Profile
 
 
Posted: 24 September 2008 07:50 AM   [ Ignore ]   [ # 12 ]
Jr. Member
RankRank
Total Posts:  33
Joined  2008-04-14

I’m gonna set up a test server where I can always let people in to help with such issues.  rasberry

The templates I use are in my first post and appear to be correct did I miss something?

Profile
 
 
Posted: 24 September 2008 07:52 AM   [ Ignore ]   [ # 13 ]
Newbie
Rank
Total Posts:  4
Joined  2008-09-23

The field_name isnt correct. It should be something like “field_id_XX”.

 Signature 

Espace Logique

Profile
 
 
Posted: 24 September 2008 07:53 AM   [ Ignore ]   [ # 14 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

yes, what Guillaume said LOL

 Signature 
Profile
 
 
Posted: 24 September 2008 07:57 AM   [ Ignore ]   [ # 15 ]
Jr. Member
RankRank
Total Posts:  33
Joined  2008-04-14

That sends an error saying field doesn’t exist tongue laugh

Profile
 
 
   
1 of 2
1