Great extension.. Been waiting for something simple and easy. If you can somehow get this to work with an Standalone “Edit” Form, I’ll be the first ton chime in on this one. Seriously, I’ve been dwelling at all the options, until I spotted this post by surprise.
Really hope this gets developed into something nice and solid.
Would there be any way to add a progress bar (eg swfupload, fancyupload), or animated uploading gif for larger files?
Would there be any way to store files in sub directories based on user ID? I am thinking for community based sites where lots of members will be uploading content, giving each member their own sub directory would make things much neater.
Really hope this gets developed into something nice and solid.
Same
Joobs - 22 June 2008 05:04 PM
Would there be any way to add a progress bar (eg swfupload, fancyupload), or animated uploading gif for larger files?
This isn’t really in the scope of this extension. I basically want to provide a very simple easy way to upload files using native web browser controls. Anything else like loading indicators / swf uploader will add lots of extra complexity.
Joobs - 22 June 2008 05:04 PM
Would there be any way to store files in sub directories based on user ID? I am thinking for community based sites where lots of members will be uploading content, giving each member their own sub directory would make things much neater.
Hmm maybe… but probably not. At the moment the extension obeys the file upload prefs you set in the admin. Actually thinking on the fly maybe I could add this in as an option…
Great extension.. Been waiting for something simple and easy. If you can somehow get this to work with an Standalone “Edit” Form, I’ll be the first ton chime in on this one. Seriously, I’ve been dwelling at all the options, until I spotted this post by surprise.
*Bows*
The latest version supports editing (but not deleteing) a file.
So far this is perfect. I was getting a blank screen again when I went to the “member/login” page, but I got around that by making my own “index/login” page, which I was meaning to do anyway. Very simple. I’ll keep trying to break it.
hmmm the blank screen thing is a bit of a worry… I’m not sure what would be causing it other than some broken php… I tried to break it but couldn’t… Are you using Solspaces user module?
Would there be any way to add a progress bar (eg swfupload, fancyupload), or animated uploading gif for larger files?
This isn’t really in the scope of this extension. I basically want to provide a very simple easy way to upload files using native web browser controls. Anything else like loading indicators / swf uploader will add lots of extra complexity.
I havent tried uploading a big file yet, but i assume I could add a javascript action to the button that places an animated gif on the site.
Leevi Graham - 23 June 2008 12:23 AM
Joobs - 22 June 2008 05:04 PM
Would there be any way to store files in sub directories based on user ID? I am thinking for community based sites where lots of members will be uploading content, giving each member their own sub directory would make things much neater.
Hmm maybe… but probably not. At the moment the extension obeys the file upload prefs you set in the admin. Actually thinking on the fly maybe I could add this in as an option…
lg_file_upload_sub_folder = '{member_id}'
That would work ok I guess.
I was assuming it would be something like you suggested, it’s still tied to the file upload prefs but can make subfolders in that directory only. If you could add this, i would find it very useful (hopefully other people would too).
Heres the hotfix. Change the form_declaration_method to:
/** * Modify the $data parameters before they are processed by the user side form creator * * @param array $data The form data * @return array The form data * @since Version 1.0.0 * @see http://expressionengine.com/developers/extension_hooks/form_declaration_modify_data/ */ function form_declaration_modify_data($data) { global $EXT, $TMPL; // -- Check if we're not the only one using this hook if($EXT->last_call !== FALSE) $data = $EXT->last_call; // check if the $TMPL is an object // on the traditional member pages this hook is called but there are no templates. if(is_object($TMPL) === TRUE && $TMPL->fetch_param('lg_saef_file_upload') == 'y') { $data['enctype']='multi'; $data['hidden_fields']['lg_saef_file_upload'] = 'y'; $data['hidden_fields']['lg_saef_file_upload_dir_id'] = $TMPL->fetch_param('lg_saef_file_upload_dir_id'); } return $data; }
This has some known issues with Solspaces User Module?
Not that I am aware of… I was building / testing it with User sothats why I couldn’t see the login / logout bug mentioned above… although that is fixed now