Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There are just too many issues with image_fupload, and swfupload doesn't natively support the one-image-per-node paradigm. plupload is small, simple, more supported in browsers, and easy to integrate with.
I already have a POC working locally, and it's just much smoother than image_fupload. Stay tuned for a patch.
Comment | File | Size | Author |
---|---|---|---|
plupload.png | 71.95 KB | justintime |
Comments
Comment #1
igorik CreditAttribution: igorik commentednice to hear this!
thanks for your effort.
Comment #2
justintime CreditAttribution: justintime commentedJust committed in initial code for integration into 3.x. If you'd like to try it out:
Plupload's beauty is in it's simplicity. It's an uploader that creates nodes, and that's it. A lot of the flakyness in image_fupload is around it trying to be a jack of all trades.
Since we already have a Manage Images form, I just adapted it a bit to make the workflow a bit more intuitive. After you upload your images via plupload, you'll be at the same page you were before. The nodes have been added, and associated with the gallery, but nothing else has been done to them. Your next visit to the Manage Images tab after uploading new images will only show you the newly uploaded images with paging disabled. When you come back (or simply click the Manage Images tab again), you'll be presented with all the images in the gallery, in a paged format.
Personally, I love this approach. image_fupload was duplicating a lot of the Manage Images tab in a different way. This new way is much more seamless.
Thoughts?
Comment #3
Delty CreditAttribution: Delty commentedI wanted to try it out, but the latest dev build is from yesterday and definitely doesn't have the option to use plupload. I'm being forced to withold my "ooohhh"'s and "aaahhh"'s against my will!
-=Delty
Comment #4
Delty CreditAttribution: Delty commentedFrom my experimentation last night, this is a much much better solution than FUpload. It's much more intuitive and the flow is far more logical. Many of my contributors don't want to add titles, captions, or descriptions, so being able to upload a bunch of images and skip a visit to the Manage Images tab will be a real godsend to my constituents.
The only caveat that I can see so far is its incompatibility with IE8 in the current iteration. As much as we-in-the-know dislike it, the majority of users sill rely on it, at least on my sites. I'm sure, though, that greggles will add Flash and Silverlight support to his module at some point in the near future.
This is definitely a change for the better.
Thanks!
-=Delty
Comment #5
justintime CreditAttribution: justintime commentedUgh. Flipping IE. I should have thought to test that.
Yeah, that's definitely a blocker. I'll file an issue for it over in the plupload queue and see where it's at on the priority list.
Comment #6
justintime CreditAttribution: justintime commentedPatch for IE support (via flash) posted over in the plupload issue queue. I'd love it if people could test and verify success over in that issue so that greggles doesn't have to do much work.
Comment #7
justintime CreditAttribution: justintime commentedJust a note that after applying the patch referenced in #6, plupload with IE+flash works, but the association between the newly created image node isn't associated properly with it's gallery. This is a bug in the NG3 integration code and not in plupload.
Comment #8
justintime CreditAttribution: justintime commentedWell, just dove in head first. Meet the newest co-maintainer of plupload :). I found a few bugs that have been in plupload since it's inception, but aren't exposed until you use a non-HTML5 uploader (like flash+IE). I'll be making some commits later today to that project that should get things in order.
Comment #9
Delty CreditAttribution: Delty commentedThe flash version works well, and it seems, based on a look at the code, that it would be easy to implement the other upload types (Silverlight, Gears, Browserplus) and add admin control over which ones to use and in which order.
Also, there is a typo in the browser support error message. "You browser..." should be "Your browser..."
Now all we need is a patch to NG that takes care of the node association issue with the parent gallery.
Thanks!
-=Delty
Comment #10
justintime CreditAttribution: justintime commentedGiven that with image_fupload we were okay with forcing Flash to do bulk uploads, I'd rather keep plupload as simple as possible. Not to mention that the more runtimes we support, the more bugs in the core plupload library we'll encounter.
I think the integration work is pretty much done. I've made a couple commits to plupload head, grab the latest dev from there, and then apply the patch from here. Finally install the latest 3.x dev, and you should have a fully working plupload+node_gallery integration going, no matter the browser.
I also fixed that typo - thanks.
Comment #11
Delty CreditAttribution: Delty commentedSo far so good - I uploaded 80 pics to various test galleries and noticed no issues, even with FielField Paths enabled. Everything went to the correct location and was added to each gallery successfully. This is so much better - thank you for taking the time to implement this!
-=Delty
Comment #12
scroogie CreditAttribution: scroogie commentedI need to go to plupload settings once and save there. Don't know why. Great work justin, by the way!
Comment #13
justintime CreditAttribution: justintime commentedWell, I think the plupload integration is already less-buggy than the image_fupload one. I'm tempted to rip out the fupload integration code, but I'll hold off until we start getting bug reports in our issue queue about it.
I made one last commit to fix a bug reported in #12 about an unconfigured plupload not working right. I want to stop short of configuring it for them, and instead display a message with a link to the proper page telling the admin what they need to do.
Marking this issue as fixed.
Comment #14
njathan CreditAttribution: njathan commentedThis is wonderful! Thanks Justin :)
Comment #16
brayo4 CreditAttribution: brayo4 commentedDoed NG3 require any other modules to work with plupload. I keep getting Your browser does not support HTML5 native or flash upload. Try Firefox 3, Safari 4, or Chrome; or install Flash. I have installed and reinstalled all modules as above, including the plupload libraries. Is there a specific jquery version to use, is this even a consideration? Ca s'one please post all modules/sw required to work with chrome/forefox browser??? thanks, been working on this for a week and dont seem to be getting any headway........
Comment #17
scroogie CreditAttribution: scroogie commentedAre you sure that the path to the plupload libraries is correct? Or do you get any error in your javascript console on firefox?
Comment #18
brayo4 CreditAttribution: brayo4 commentedthe path is correct and i've installed/reinstalled over 20 times. Is there anyone who has successfully loaded without applying the patch??? maybe i can learn something from them. i tried to patch it but was unable to......
Comment #19
scroogie CreditAttribution: scroogie commentedYou don't need the patch anymore. You just install version 6.x-1.x-dev of plupload, download the library from plupload.com and put it in the same folder. It should work then. Please have a look at the javascript error console if there are any proper error messages.
Comment #20
brayo4 CreditAttribution: brayo4 commentedThank you much for hanging in there with me. What fixed it was rolling back to jquery 1.6 . Works like a charm....back to plan A.....
Comment #21
kouri CreditAttribution: kouri commented@ scroogie #19
Can you confirm that the content of both /plupload dirs (the one from plupload integration module page and the one from plupload.com site) must be mixed into drupal/modules/plupload/ directory ?
Comment #22
scroogie CreditAttribution: scroogie commentedYou extract the plupload archive from plupload.com into the plupload subfolder in the module folder, yes. So in the end you have
/sites/all/modules/plupload/
with the modules files in and
/sites/all/modules/plupload/plupload/
with the plupload files (js/ src/ etc.) in.
Comment #23
kouri CreditAttribution: kouri commentedThank's for preciseness.
;)
I reinstalled the plupload integration module but it is now unactivable (uncheckable) in module list
:(
Comment #24
baskin CreditAttribution: baskin commentedI have the error described below. I can see that this fellow is using drupal as well. My installation is fresh (6.22) and i'm using Node Gallery 6.x-3.0-beta2 and latest plupload.
https://github.com/moxiecode/plupload/issues/173
Comment #25
dddave CreditAttribution: dddave commentedPlease don't arbitrarily open old issues. If you want to report this issue please do so in the plupload module issue queue but check first if there is already an issue about this problem.
Comment #26
artiprasad CreditAttribution: artiprasad commentedI am getting the same error but till not finding solution "Your browser does not support HTML5 native or flash upload. Try Firefox 3, Safari 4, or Chrome; or install Flash.". I already updated plupload jQuery but then also this error is appear done various settings but not get solution.