I could not find the answer (sorry if it's already asked).

I am trying to import several files into just one node to the filefield cck field.
The filefield is set up to take "unlimited" values, so I can upload as many files as I want.

With the configurations, I am only be able to harvest one file and attach it to one field in one node, but what I want is to attach all the files to several filefields in the same node.

Is that possible?

Thanks for the help

Comments

arthurf’s picture

Unfortunately this is not currently supported. We need to modify mm_cck_field_filefield() to support this . There was some conversation about this this summer, but as of yet I have not put it together. I don't think this is a huge task- it requires a configuration option and some modifications to this function

davebv’s picture

Thanks for the quick answer, I will have a look at that function

jlevis’s picture

Hello,

I think I may have run into the same issue.

I am attempting to create multiple thumbnails from a video using Media Mover video_thumbnailer module.

I have installed the alpha Drupal 6 version of video_thumbnailer that was provided here: #648828: Initial Drupal 6 version created

Under the "Storage Configuration" I have chosen "Media Mover CCK Module: Save Data in a CCK Field" and have chosen to save it to a CCK Filefield (that uses Imagefield widget type) on the original node.

"Number of values" is set to "Unlimited" for the Filefield I am attempting to save these multiple files back to.

All the thumbnails are generated successfully but only the first is saved back to the node, and I am getting the following error for each of the multiple thumbnails it tries to attach:

user warning: Duplicate entry '0' for key 1 query: INSERT INTO video_thumbnailer (mmfid, nid, path) VALUES
...
in /var/www/html/vrc/sites/all/modules/video_thumbnailer/video_thumbnailer.module on line 588.

It seems as though the system doesn't know how to attach the additional image files to the same CCK field.

Are there any recommendations on how to attach multiple thumbnails back to a CCK filefield that is set to allow multiple entries?

Thanks for all your amazing work!

quiron’s picture

Hi arthurf,

We were trying to deal with this issue during the last month... with no success.

We are developing a new feature to allow users to upload a PDF file that will be converted to multiple JPG... to be stored in single node on a multiple value filefield that will be finally displayed with JS-lightbox.

Till now we were working in a modification of mm_dir but looks like the $file data structure crashes when we have more than one file.

Do you plan to fix this issue? Could we help anyway? Any clue about how to implement this?

Thanks a lot in advance for your help,

arthurf’s picture

@quiron can you provide the actual error?