When i create a standard field_image for the blog content type, with the option for multiple uploads,
i only get one image upload form in the actual blog post. To add more images i have to save the
post and edit it afterwards again (this way i can add one more picture at the time).

This seems to be a bug to me. It would make more sense to have either all upload forms at once or new ones
popping up each time a upload is finished.

Regards,
honorfield

Comments

mr.baileys’s picture

Status: Active » Postponed (maintainer needs more info)

To add more images i have to save the post and edit it afterwards again

Do you have javascript enabled? If so, you can click "upload" next to the browse button and add mulitple images.

Kiran Joshi’s picture

I'm having the same issue. Let me detail it a little more.

For the node type, I have an image field. I can add images (click on browse, select, click upload). I can see that the file actually gets saved to the /sites/default/files/ directory.

I can add multiple images.

Then, for some reason, after clicking "Save", only the first image is part of the node. The rest are just lost. When I hook into hook_node_update or hook_node_insert, the other images aren't part of the field.

The strange thing is that it's inconsistent. Sometimes it works well and sometimes it doesn't.

So the files directory has all these files that aren't in the file_managed table. They were copied over but never attached to the node and I'm not sure why.

==
KJ

acetrebo’s picture

I also have this issue. I cannot upload multple images. If I choose more than 1, the appear to upload, but after clicking save, only 1 image was uploaded. Any others just do not show. If I edit, and add another, save, then edit again, both images show.

So, I have to upload 1 image, save, then go to edit, add another, save. Very cumbersome.

I am using a content type to add multiple images to a node for a gallery. It works fine if I do as described above. how can I add multiple images to my new node all at once?

Also, If I upload a few, then hit "preview" I get the following error:
notice: undefined index:display_field in file_field_widget_value() line 593 of /home/content/52/7677/852/html/"sitename"/modules/file/file.field.inc.

thanks.

acetrebo’s picture

I found a the fix for this was an edit to the ajax files. I found it on drupal, don't have the exact link, but it was a known issue with ajax files.

marktheshark’s picture

Status: Postponed (maintainer needs more info) » Active

I have configured a content type with 3 multi-image fields on a Drupal 7.2 installation.

I can upload images one by one. However, many times when I enter all images for my new node, then save, the resulting node has e.g. only one image per field. This is extremely annoying because:

  • I have to do it almost all over again
  • The files are actually uploaded but not mapped to a field in the created node
  • Re-adding the images creates duplicates named image_n (n = 0,1,2...)
  • For one node (don't remember the exact sequence of actions) all consequent tries to upload the same image caused an "already exists" constraint violation when the AJAX script submits it to the DB. As a workaround I had to delete the images in IMCE (images were added but not as a field in the node).
  • I have to go to IMCE and delete the duplicates to make sure I get the original file name when I re-add the desired file.

This is hopeless. I'll try to do add one image at a time and save for the time being.

WilliamB’s picture

Facing the same issue, i have a content field with a lot of fields including 8 images field and i have to upload one image at a time save and edit, and i get those error message after validating:

Notice : Undefined index: display_field dans file_field_widget_value() (ligne 593 dans D:\Profiles\gboullan\Bureau\myTheme\modules\file\file.field.inc).
Notice : Undefined index: display_field dans file_field_widget_value() (ligne 593 dans D:\Profiles\gboullan\Bureau\myTheme\modules\file\file.field.inc).
Notice : Undefined index: display_field dans file_field_widget_value() (ligne 593 dans D:\Profiles\gboullan\Bureau\myTheme\modules\file\file.field.inc).
Notice : Undefined index: display_field dans file_field_widget_value() (ligne 593 dans D:\Profiles\gboullan\Bureau\myTheme\modules\file\file.field.inc).
Notice : Undefined index: display_field dans file_field_widget_value() (ligne 593 dans D:\Profiles\gboullan\Bureau\myTheme\modules\file\file.field.inc).
Notice : Undefined index: display_field dans file_field_widget_value() (ligne 593 dans D:\Profiles\gboullan\Bureau\myTheme\modules\file\file.field.inc).
Notice : Undefined index: display_field dans file_field_widget_value() (ligne 593 dans D:\Profiles\gboullan\Bureau\myTheme\modules\file\file.field.inc).
Notice : Undefined index: display_field dans file_field_widget_value() (ligne 593 dans D:\Profiles\gboullan\Bureau\myTheme\modules\file\file.field.inc).

Tobion’s picture

Version: 7.x-dev » 7.2
Priority: Normal » Major

I experience the same bug. And it's really annoying. Please fix it.
marktheshark described the problem very good. I want to add the following errors:
- I cannot upload more than around 25 images (varies). When adding more images the new ones just replace the previous ones. In this cicumstance no error information is given but instead the message appears that the article has been updated although I didn't save it yet! But when I refresh the page I see that the previous image has been replaced.
- Also in Google Chrome some layout problems occur due to malformed HTML. See also this bug report: http://drupal.org/node/1193570. So I tried it in Firefox but when I upload the 26th image something even more strange happens: Firefox lets me download the returned JSON response instead of processing it. The response is around 150 KB. Maybe there is a request/response limit for JSON which is exceeded after 25 images?
- when updating an node with many images the node gets unpublished and the menu entry for this node disappears!

aspilicious’s picture

miro_dietiker’s picture

Status: Active » Closed (duplicate)

i see here no single issue. i see much more a mixture of issues.

One of the (main) issues here is clearly the referred by aspilicious - so i would recommend to mark this issue duplicate.
However the others should be separated and added under a separate thread.. and look more like support requests to me, no real bugs.

BTW: marktheshark: you really shouldn't delete files that way... You're breaking the file management consistency badly and you'll possibly have any unexpected side effect.

marktheshark’s picture

Hello, what do you recommend in this case?

RedJane’s picture

Same problem with drupal 7.12.

Files are being uploaded but not showing up . Only the first 25.
A little help would be nice :-)

odizle’s picture

same problem here. I am using Drupal 7.14
would love some help :) thanks