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.
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
Comment #1
mr.baileysDo you have javascript enabled? If so, you can click "upload" next to the browse button and add mulitple images.
Comment #2
Kiran Joshi CreditAttribution: Kiran Joshi commentedI'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
Comment #3
acetrebo CreditAttribution: acetrebo commentedI 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.
Comment #4
acetrebo CreditAttribution: acetrebo commentedI 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.
Comment #5
marktheshark CreditAttribution: marktheshark commentedI 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:
This is hopeless. I'll try to do add one image at a time and save for the time being.
Comment #6
WilliamB CreditAttribution: WilliamB commentedFacing 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).
Comment #7
Tobion CreditAttribution: Tobion commentedI 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!
Comment #8
aspilicious CreditAttribution: aspilicious commentedIsn't this a duplicate off #1059268: Files are lost when adding multiple files to multiple file fields at the same time ??
Comment #9
miro_dietikeri 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.
Comment #10
marktheshark CreditAttribution: marktheshark commentedHello, what do you recommend in this case?
Comment #11
RedJane CreditAttribution: RedJane commentedSame problem with drupal 7.12.
Files are being uploaded but not showing up . Only the first 25.
A little help would be nice :-)
Comment #12
odizle CreditAttribution: odizle commentedsame problem here. I am using Drupal 7.14
would love some help :) thanks