5 of 6
5
LG SAEF File Upload…. Throwing my hat into the ring
Posted: 06 August 2008 06:22 AM   [ Ignore ]   [ # 73 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  116
Joined  01-17-2006

where can I download your latest file upload extention? This is exactly what I need. When it populates the field, does it embed the file or puts the url in the field?

Thanks

 Signature 

Project Digital
http://www.projectdigital.com

Profile
 
 
Posted: 06 August 2008 04:13 PM   [ Ignore ]   [ # 74 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1076
Joined  01-24-2006
project_digital - 06 August 2008 06:22 AM

where can I download your latest file upload extention? This is exactly what I need. When it populates the field, does it embed the file or puts the url in the field?

Thanks

The latest version can be found attached to my first post.

 Signature 

VOTE FOR LG Addons in the Mashable Open Web Awards!


Newism - Newcastle Web Design & Development


LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator

Profile
 
 
Posted: 07 August 2008 07:55 PM   [ Ignore ]   [ # 75 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  116
Joined  01-17-2006

Cool… thanks. After installing and reading through this thread a million times, I can’t seem to populate the custom field. Here’s my code for the file upload part.

{exp:weblog:entry_form weblog = "client_files" lg_saef_file_upload = "y" lg_saef_file_upload_dir_id = "1"}
Title
: <input type="text" name="title" value="" /><br />
<
input type="hidden" name="entry_id" value="{entry_id}" />
<
input type="hidden" name="entry_date" value="{entry_date}" />
File 1: <input type="file" name="field_id_28" value="" /><br />
<
input type='submit' value='Submit' />
{/exp:weblog:entry_form}

The title shows correctly, but the custom field is empty.

UPDATE: After looking at my server, the files aren’t even uploading.

 Signature 

Project Digital
http://www.projectdigital.com

Profile
 
 
Posted: 10 August 2008 11:31 PM   [ Ignore ]   [ # 76 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  596
Joined  12-10-2006

Hi Levi

Just wondering if your plans for a delete function are still in the pipeline?

Profile
 
 
Posted: 10 August 2008 11:54 PM   [ Ignore ]   [ # 77 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1076
Joined  01-24-2006

Not at the moment as I don’t need this feature personally and my time is quite limited these days…. dam clients smile

 Signature 

VOTE FOR LG Addons in the Mashable Open Web Awards!


Newism - Newcastle Web Design & Development


LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator

Profile
 
 
Posted: 11 August 2008 01:00 PM   [ Ignore ]   [ # 78 ]  
Grad Student
Rank
Total Posts:  43
Joined  10-17-2006

Leevi,
Just got this working (after a few false starts, but success once I could afford a solid amount of time) - the one thing I’m a bit unsure about. I’m using the {custom_fields} tag for all the other fields within the weblog, which means that the text field for the photo upload field appears. Do I not use the custom fields tag and extract the HTML or is there a simpler way to deal with this?
Many thanks.

Profile
 
 
Posted: 11 August 2008 01:52 PM   [ Ignore ]   [ # 79 ]  
Lab Assistant
RankRank
Total Posts:  239
Joined  12-06-2002

Hi Leevi - I’m running into the blank CP with this extension enabled too… real shame because the functionality is perfect, and I really though it was the answer to my SAEF file upload prayers! I’m using EE 1.6.4 Build 20080710 with MSM.

Profile
 
 
Posted: 11 August 2008 04:04 PM   [ Ignore ]   [ # 80 ]  
Grad Student
Rank
Total Posts:  43
Joined  10-17-2006

You can scratch my last post - got it figured out with a show_fields command on the entries line. I too, however, am having the blank CP problem now. One thing I’ve noticed though is that it is only the front page that shows up blank, and if I happen to paste in an active page after the session ID, everything else shows up just fine. Hope that narrows that problem down for you.

Profile
 
 
Posted: 11 August 2008 04:58 PM   [ Ignore ]   [ # 81 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1076
Joined  01-24-2006
jtnews - 11 August 2008 04:04 PM

You can scratch my last post - got it figured out with a show_fields command on the entries line. I too, however, am having the blank CP problem now. One thing I’ve noticed though is that it is only the front page that shows up blank, and if I happen to paste in an active page after the session ID, everything else shows up just fine. Hope that narrows that problem down for you.

Best thing to do is turn off the automatic update feature in the extension settings. This should resolve the problem. I think the error has to do with fopen() but I’m not sure.

Still looking into it.

 Signature 

VOTE FOR LG Addons in the Mashable Open Web Awards!


Newism - Newcastle Web Design & Development


LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator

Profile
 
 
Posted: 12 August 2008 06:42 AM   [ Ignore ]   [ # 82 ]  
Lab Assistant
RankRank
Total Posts:  239
Joined  12-06-2002
Leevi Graham - 11 August 2008 04:58 PM

Best thing to do is turn off the automatic update feature in the extension settings. This should resolve the problem. I think the error has to do with fopen() but I’m not sure.

Hi Leevi - that’s fixed it for me, great! I needed to repeat the process for both MSM sites too…

Profile
 
 
Posted: 13 August 2008 07:38 PM   [ Ignore ]   [ # 83 ]  
Lab Assistant
RankRank
Total Posts:  271
Joined  07-04-2007

I am having a problem mentioned earlier by mr_dimsum.

My files are uploading, but if i go to the EE CP and check edit the field is blank.

Also is there anyway to stop a file uploading if the SAEF throws up an error?  For example if the user doesnt include a title, the file still gets uploaded.  So when the user finally does fill out the form correctly there are mulitple versions of the same file on the server.

*edit* The extension works on my local test server.  But not on my real server.  Both running the latest EE, both using the same template code.

Profile
 
 
Posted: 13 August 2008 10:14 PM   [ Ignore ]   [ # 84 ]  
Lab Assistant
RankRank
Total Posts:  271
Joined  07-04-2007

I’ve figured out what I was doing wrong!

I had assumed that the field order was the same as the field ID.  However, it seems these have got out of sync.

So I got the correct field ID from looking at the URL in the control panel.

Looking at the database, the extention was putting the file in the field I originally specified but obviously I never saw that field because it was setup with a different weblog field group.

Profile
 
 
Posted: 14 August 2008 01:04 AM   [ Ignore ]   [ # 85 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1076
Joined  01-24-2006

Glad I could help Joobs smile

 Signature 

VOTE FOR LG Addons in the Mashable Open Web Awards!


Newism - Newcastle Web Design & Development


LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator

Profile
 
 
Posted: 16 August 2008 07:41 PM   [ Ignore ]   [ # 86 ]  
Grad Student
Avatar
Rank
Total Posts:  46
Joined  02-01-2008
Simon | Northern Soul - 12 August 2008 06:42 AM
Leevi Graham - 11 August 2008 04:58 PM

Best thing to do is turn off the automatic update feature in the extension settings. This should resolve the problem. I think the error has to do with fopen() but I’m not sure.

Hi Leevi - that’s fixed it for me, great! I needed to repeat the process for both MSM sites too…

Simon - I’m obviously missing something here - how did you disable auto-update on leevi’s ext when you can’t get into the control panel? I’m having teh same issue… I went and simply deleted the extension from the extensions folder via ftp - looks like I shouldn’t have done that cause now I’m getting “the system does not appear to be installed” when I try to login to the CP - looks like I’ll have to do a fresh install (that will be the third time I’ve had to install and build this site :-( )... guess at least I know to turn autoupdates off with leevi’s ext and hopefully it will go alright this time…

EDIT: ok no worries my config file had been wiped for some reason - just copied the code in from the config.bak file and disabled extensions from there - all good ;-)

Profile
 
 
Posted: 16 August 2008 08:40 PM   [ Ignore ]   [ # 87 ]  
Lab Assistant
RankRank
Total Posts:  271
Joined  07-04-2007

Markwts, upload a fresh version of the extension.  Deleting an active extension will cause site wide problems.

You can disable it if you log into your hosting account and use something like phpMyAdmin.  Go to exp_extensions and change the “enabled” options for the three LG upload entries from “y” to “n”.  This is how i did it. seems to work.

You might want to backup your database before manually editing it though…

*edit* i’ve read your response above, if there is an option in the config file then that is probably safer than poking around the database!

Profile
 
 
Posted: 16 August 2008 10:06 PM   [ Ignore ]   [ # 88 ]  
Grad Student
Avatar
Rank
Total Posts:  46
Joined  02-01-2008
Joobs - 16 August 2008 08:40 PM

Markwts, upload a fresh version of the extension.  Deleting an active extension will cause site wide problems.

You can disable it if you log into your hosting account and use something like phpMyAdmin.  Go to exp_extensions and change the “enabled” options for the three LG upload entries from “y” to “n”.  This is how i did it. seems to work.

You might want to backup your database before manually editing it though…

*edit* i’ve read your response above, if there is an option in the config file then that is probably safer than poking around the database!

Gday Joobs thanks - yeah everything seems to be behaving itself now touch wood wink

Profile
 
 
Posted: 16 August 2008 10:54 PM   [ Ignore ]   [ # 89 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1076
Joined  01-24-2006

Hey Guys,

I’m working on a new auto - update extension that should resolve these issues.

Cheers

 Signature 

VOTE FOR LG Addons in the Mashable Open Web Awards!


Newism - Newcastle Web Design & Development


LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator

Profile
 
 
Posted: 17 August 2008 12:43 AM   [ Ignore ]   [ # 90 ]  
Grad Student
Avatar
Rank
Total Posts:  46
Joined  02-01-2008
Leevi Graham - 16 August 2008 10:54 PM

Hey Guys,

I’m working on a new auto - update extension that should resolve these issues.

Cheers

Thanks Leevi - keep up the good work mate wink

Profile
 
 
   
5 of 6
5
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64918 Total Logged-in Users: 26
Total Topics: 81871 Total Anonymous Users: 12
Total Replies: 440155 Total Guests: 193
Total Posts: 522026    
Members ( View Memberlist )