We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LG SAEF File Upload.... Throwing my hat into the ring

Development and Programming

Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Hey do you guys have PHP errors turned on?

A blank screen usually means an issue with the language file so I’ll check that out. Can you try browsing to the language file directly and see what happens?

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Oh and what version of PHP are you guys using?

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Ok guys… I have just uploaded the latest version I have been using on my site. Try that one out and let me know how you go…

       
Golfball's avatar
Golfball
10 posts
17 years ago
Golfball's avatar Golfball

latest is giving me various output like this at top of every page on site:

Array
(
    [hidden_fields] => Array
        (
            [ACT] => {AID:Weblog:insert_new_entry}
            [RET] => http://localhost/index.php/daily_photo/upload/
            [PRV] => {PREVIEW_TEMPLATE}
            [URI] => /daily_photo/upload/
            [XID] => 
            [return_url] => daily_photo/index
            [author_id] => 1
            [weblog_id] => 7
            [field_ft_6] => none
            [field_ft_7] => none
            [site_id] => 1
        )

    [action] => http://localhost/index.php/daily_photo/upload/
    [id] => entryform
    [secure] => 1
    [enctype] => 
    [onsubmit] => 
)

Array
(
    [hidden_fields] => Array
        (
            [ACT] => {AID:Search:do_search}
            [XID] => 
            [RP] => search/results
            [NRP] => 
            [RES] => 
            [status] => 
            [weblog] => 
            [search_in] => everywhere
            [where] => all
            [site_id] => 1
        )

    [action] => 
    [id] => 
    [secure] => 1
    [enctype] => 
    [onsubmit] => 
)

using php 5.2.1 and still not adding the upload directory tag also. 😉 browsing directly to the lang file provides a blank page.

       
simplyee's avatar
simplyee
104 posts
17 years ago
simplyee's avatar simplyee

Php 4.4.7

Still have the same issue after enabling and logging out: blank screen.

Also a blank screen navigating to that lang file.

       
Danny T.'s avatar
Danny T.
426 posts
17 years ago
Danny T.'s avatar Danny T.

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

       
Joobs's avatar
Joobs
362 posts
17 years ago
Joobs's avatar Joobs

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.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
Really hope this gets developed into something nice and solid.

Same 😊

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.

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. 😊

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

–

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Ok guys… I just uploaded the extension with edit functionality… go grab it!

Note: This extension is still being developed and tested… there may be bugs.

       
simplyee's avatar
simplyee
104 posts
17 years ago
simplyee's avatar simplyee

My problem solved with the new version and PM, thanks for the support Leevi, it’s appreciated.

You can add a “loading” gif easily enough. Here’s something to get you going. Just upload the gif and make sure the path is the same:

<input type="submit" name="submit" value="Submit" onclick="document.getElementById('UploadProgress').style.display=''; form.submit(); return false;" />/assets/loading.gif

Works, but any of you javascript guys correct me if it’s not right.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
My problem solved with the new version and PM, thanks for the support Leevi, it’s appreciated. You can add a “loading” gif easily enough. Here’s something to get you going. Just upload the gif and make sure the path is the same:
<input type="submit" name="submit" value="Submit" onclick="document.getElementById('UploadProgress').style.display=''; form.submit(); return false;" />/assets/loading.gif
Works, but any of you javascript guys correct me if it’s not right.

You shouldn’t need the

form.submit(); return false;

as the submit button will still submit the form after showing the throbber

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
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.

       
Golfball's avatar
Golfball
10 posts
17 years ago
Golfball's avatar Golfball

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. 😉

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

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?

       
1 2 3 4 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.