2 of 3
2
Missing Upload Link and Window Doesn’t Close
Posted: 27 February 2009 08:05 AM   [ Ignore ]   [ # 16 ]
Member
Avatar
RankRankRank
Total Posts:  290
Joined  2008-03-04

Not at all. Sending PM with login details.

Profile
 
 
Posted: 27 February 2009 12:12 PM   [ Ignore ]   [ # 17 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10254
Joined  2006-10-18

Ahhhh crap!

I fumbled with this thing for quite some time before I realized you left out the fileplacer(); JS trigger on the Place Image and Close Window button wink

 Signature 
Profile
 
 
Posted: 27 February 2009 12:25 PM   [ Ignore ]   [ # 18 ]
Member
Avatar
RankRankRank
Total Posts:  290
Joined  2008-03-04

Thanks for reviewing that. So now the invoice uploads properly and associates with the weblog entry. Just one more question.

Is it possible for that input field to be hidden? I can only imagine how tempting it will be for someone to delete a character or two.

Profile
 
 
Posted: 27 February 2009 12:39 PM   [ Ignore ]   [ # 19 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10254
Joined  2006-10-18

Yeah, just change the type from “text” to “hidden” wink

 Signature 
Profile
 
 
Posted: 27 February 2009 12:41 PM   [ Ignore ]   [ # 20 ]
Member
Avatar
RankRankRank
Total Posts:  290
Joined  2008-03-04

Cool. Many thanks for your invaluable help. I am almost done and tell Mitchel I said you could take the rest of the day off LOL

Profile
 
 
Posted: 01 July 2009 04:41 PM   [ Ignore ]   [ # 21 ]
Jr. Member
RankRank
Total Posts:  94
Joined  2007-04-27

Hi - me again. smile

I’m having this same issue but not sure where I’ve gone wrong (I’ve double-checked the code). Basically, the file uploads correctly, gets to the placement window and when you click on the button to place and close, the file code doesn’t get placed and the window/popup doesn’t close but goes to the home page (shown in that tiny window).

here’s my code:

Inside the SAEF:

<small><>Click here to Upload a file</a></small

Upload file code:

{exp:file_upload:upload_form form_name="member_upload" destination="Member Uploads" field_name="ll_text" return="living_legends/file_upload_placement"}

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

{/exp:file_upload:upload_form} 

Placement window code:

{javascript}
 
{exp
:file_upload:upload_confirm field_replace="replace"}
 
<p>File sucessfully uploaded!</p>
<
input type="submit" value="Place Image and Close Window">
 
{/exp:file_upload:upload_confirm} 
 Signature 

420 Creative: Web design + development, Portland, OR
EE Pro Network Member

Profile
 
 
Posted: 02 July 2009 07:43 AM   [ Ignore ]   [ # 22 ]
Member
Avatar
RankRankRank
Total Posts:  290
Joined  2008-03-04

I keep trying to post this thing but the system strips out the code. I have attached the correct solution.

Forrest

File Attachments
upload_confirm.php.zip  (File Size: 1KB - Downloads: 128)
Profile
 
 
Posted: 02 July 2009 04:14 PM   [ Ignore ]   [ # 23 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10254
Joined  2006-10-18

Thanks Forrest,

Yes, be sure you have the onclick in there:

EDIT: Thought I could trick the forum… couldn’t… have a look at Forrest’s code grin

 Signature 
Profile
 
 
Posted: 02 July 2009 04:42 PM   [ Ignore ]   [ # 24 ]
Jr. Member
RankRank
Total Posts:  94
Joined  2007-04-27

Haven’t had a chance to implement the fix, but I saw the difference - thanks guys!

 Signature 

420 Creative: Web design + development, Portland, OR
EE Pro Network Member

Profile
 
 
Posted: 08 July 2009 06:19 PM   [ Ignore ]   [ # 25 ]
Jr. Member
RankRank
Total Posts:  94
Joined  2007-04-27

Okay, I copied and pasted the very code that Forrest uploaded and couldn’t get it to work. Still getting the same issue where the file doesn’t get placed and the popup shows the home page. :/

 Signature 

420 Creative: Web design + development, Portland, OR
EE Pro Network Member

Profile
 
 
Posted: 08 July 2009 09:01 PM   [ Ignore ]   [ # 26 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10254
Joined  2006-10-18

Angie,

Are you sure you have everything necessary?

Have a look at the example on the Docs… it’s pretty much what Forrest has in his attachment:
http://www.solspace.com/docs/entry/file_upload_21_file_placement/#examples

Also make sure that your Upload Form contains the proper code and specifies the correct custom field as well smile

 Signature 
Profile
 
 
Posted: 09 July 2009 04:47 PM   [ Ignore ]   [ # 27 ]
Jr. Member
RankRank
Total Posts:  94
Joined  2007-04-27

Yep, I’m sure I have everything. I just double and triple checked and the code is pretty much verbatim as examples in the docs (except for custom field names of course). Still not working.

 Signature 

420 Creative: Web design + development, Portland, OR
EE Pro Network Member

Profile
 
 
Posted: 10 July 2009 06:07 AM   [ Ignore ]   [ # 28 ]
Member
Avatar
RankRankRank
Total Posts:  290
Joined  2008-03-04

The one thing to make sure is that you have three different files:

This was the part that confused me the most.

1. You need the main file where you start the upload process

2. Your next file is the window that pops up for browsing to the file and starting the upload process

3. The final file actually places the file and closes the pop up window.

Hope this helps.

Forrest

Profile
 
 
Posted: 10 July 2009 10:48 AM   [ Ignore ]   [ # 29 ]
Jr. Member
RankRank
Total Posts:  94
Joined  2007-04-27

I know you guys are just being thorough but I’m positive that I have everything that’s needed. 3 templates, yes; correct code, yes. Something isn’t working and if I can’t get this figured out I will have to move on to a different solution.

 Signature 

420 Creative: Web design + development, Portland, OR
EE Pro Network Member

Profile
 
 
Posted: 10 July 2009 10:50 AM   [ Ignore ]   [ # 30 ]
Member
Avatar
RankRankRank
Total Posts:  290
Joined  2008-03-04

Are you able to upload through the control panel?

Would you be willing to let me give it a try?

Profile
 
 
   
2 of 3
2