Will it be possible in the future to upload multiple files to a single field with number of values set to unlimited in a single node?

Comments

greggles’s picture

That's not part of my use case/road map but I would be willing to allow a sub-module on the 6.x branch that does that.

juves’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Assigned: Unassigned » juves

This could be a great alternative to Image FUpload

danielbeeke2’s picture

Hey

I found out how Adam S did it.

install http://drupal.org/project/imagefield_import

edit plupload.module
search for $temp_directory and change it to:

$temp_directory = 'sites/default/files/images/import/';

now it works with image import

greetings

juves’s picture

It isn't a good Solution, you have to upload images to a web server via FTP before you may use them.

pribeh’s picture

Ya, #3 is not a good solution. Anybody else find a way to do this?

pribeh’s picture

If anyone's interested in implementing this in the D6 version I can provide a bounty.

izmeez’s picture

subscribe

vordude’s picture

I'll be "that guy"

Why?

pribeh’s picture

vordude, did you just step up to the plate?

magnus’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Assigned: juves » Unassigned

This module looks really promising, especially if this feature will be implemented.

vordude’s picture

@pribeh Not stepping up, although It doesn't seem too difficult. Just being "that guy" who's asking why you think this is so necessary, that's all. Personally, I find more flexibility in the 1 image/node setup.

pribeh’s picture

Ya, I guess the trouble for me is finding the right solution for allowing users (of my content-sharing websites) to create galleries out of one-node cck fields. I've been trying to use nodereference for gallery creation but I find all the image/media-based selection widgets for it to be either a little cumbersome or just plain non-customizable.

autopoietic’s picture

I think I may try to handle this by making a dependent module that will use plupload integration within a block that will add the created nodes as children to the nid specified in url Node Hierarchy or Node Reference.

This way I keep the image nodes seperate yet can streamline the process of adding them to a gallery style view.

An alternative would be to use Node Gallery, which does use plupload integration, but I don't think I need the other stuff it offers.

Let me know if there is any interest in this solution.

pribeh’s picture

I think I may try to handle this by making a dependent module that will use plupload integration within a block that will add the created nodes as children to the nid specified in url Node Hierarchy or Node Reference.

@autopoietic, that sounds like a great idea.

I checked out Node Gallery but it's rather heavy and cumbersome - too complicated. I'm working on a couple of social networking sites which from both a performance/usability perspective need to stay as simple as possible. Using node referencing I think is the way to go. Obviously having something like media gallery (Drupal 7 only) would be amazing and nrembrowser gets close to being really handy but it's still more complicated than it should be in my opinion for most sites. Flickr does something similar with photosets (the drag and drop interface is great) but I think lots of users could still benefit from a one-stop upload-a-bunch-of-photos to gallery interface. Most photographers using my sites want to upload a batch of photos at a time to a gallery. All their photos usually pertain to one thing (a single event or something) and so this makes sense. Also, they're likely not to spend as much time on my site organizing their photos like they would on Flickr so the add this photo to a photoset is a nice option but not the preference - it's an extra step.

Sorry for the banter. I look forward to testing anything you can come up with autopoietic.

pribeh’s picture

@autopoieticc, any luck with your node reference solution?

SB’s picture

subscribe

Anonymous’s picture

hey guys, I just developed a version of this module, where the uploaded images are stored in a single node (in the multi-value imagefield of that content-type). So it's not using any node references or something.

however, I changed some stuff, so that the original thing (saving images to separate nodes) is not implemented anymore. So I won't make a patch for this module or something. If anybody is interested - with a little effort - I could easy make a version that supports the current solution as well so that the user can define by configuration if the images should be saved in separate nodes or in one single nodes... or I could only provide my source as it is.

anybody at drupalcon chicago? I could show my solution and we could discuss the next steps...

cheers,
protyze

pribeh’s picture

Hi protyze, I would love to test out a copy of what you have already. This may be ideal for a site I'm working on at the moment.

Anonymous’s picture

Hey, I created a sandbox project where I committed my current code (http://drupal.org/sandbox/protyze/1084060). After uploading the images on the /file-plupload page, it will create a new node in the background and redirect you to the edit page of the newly created node, so that the user can fill out the rest of the gallery fields (title, etc...). the images will already be there.

A filefield widget would be a much better solution for this, but this is discussed in #880300: Decide on a plupload module roadmap and it also seems that it is in progress for D7, so I don't want to do duplicate work here. You may use and change the code if you want, but don't expect a finished project.

johnv’s picture

subscribing. I'll try out a copy of the sandbox, once I have GIT set up. I haven't found a fast way to upload files to a multivalue-field, except for http://drupal.org/project/dragndrop_uploads.

pribeh’s picture

Hi johnv. I have the sandbox copy running on a live site and it's working great. oh, but the only thing it isn't working for user number 1 for some reason.

Anonymous’s picture

pribeh, maybe you have devel on or some other modules that generate debug output! in that case the json response for the ajax calls become invalid because of the debug out! that's why you only experience this behaviour with user one. that was also discussed on the issue queue of the sandbox project! btw. I'm also running it successfully on a production site!

bryancasler’s picture

subscribe

ianj’s picture

subscribe

Anonymous’s picture

+1

mikeytown2’s picture

http://drupal.org/project/imagefield_zip can do this. I'm looking to take the code that's been developed for Imagefield Zip and use it in a multi uploader like Plupload. Check out the 2 demo videos to see this in action. Got this working with html5 uploads #1295334: Bring in experimental html5 multiple file uploading instead of using zip upload..

ikeigenwijs’s picture

I have found a working solution, used plupload

sandbox project:
http://drupal.org/sandbox/vingborg/1138512

Would be supper when this would be a full project.
Hope this helps someone, took me some time to find this.