Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I'm not sure if this is an issue for mupload or plupload, but at the moment the alert message "You must at least upload one file." is being triggered from line 79 of sites/all/modules/plupload/plupload.js when trying to edit a node. The field already has images.
There are of coarse times when you just want to edit the body text or re-order images, without uploading new images. To reproduce, just edit a node with a mupload field, then click save.
Comment | File | Size | Author |
---|---|---|---|
#13 | nowidget.jpg | 15.05 KB | maryedith |
#7 | required-upload-fix-1140666-7.patch | 1.12 KB | Anonymous (not verified) |
#6 | required-upload-fix-1140666-6.patch | 803 bytes | Anonymous (not verified) |
#1 | plupload-7.x-1.0-vingborg.tar_.gz | 125.54 KB | vingborg |
Comments
Comment #1
vingborg CreditAttribution: vingborg commentedThank you for the report. It is in fact a bug in the plupload module and I do have a patch for it.
I'll submit it over there shortly, but if you want a solution right now, you can use the version I've attached to this comment.
This version also uses the latest version of plupload (1.4.3) and you can use it with the "Libraries" module.
Comment #2
Scott J CreditAttribution: Scott J commentedThank you. It's working great!
Plupload v1.4.3.2 in libraries folder.
Comment #3
vingborg CreditAttribution: vingborg commentedComment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedWhat is the patch? Because I just got the latest dev version of plupload (May 25) and this hasn't been fixed yet. I can't find the specific solution from your zip.
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedHere is a patch for plupload.js
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedAttached is the full patch. (The patch if for plupload+mupload integration, so users can use imagefields with plupload. The problem was you couldn't delete nodes due to "You must upload at least one file". Which is now fixed with this patch.)
Comment #8
TripX CreditAttribution: TripX commentedsub
Comment #9
mdorman CreditAttribution: mdorman commentedThe patch from #7 fixed this issue for me.
Comment #10
rv0 CreditAttribution: rv0 commentedHmm
#7:
thats the same patch as posted in http://drupal.org/node/1146562
Which I just edited and rerolled: http://drupal.org/node/1146562#comment-4934678
Comment #11
rv0 CreditAttribution: rv0 commentedmarking as duplicate and closing
Comment #12
Danny EnglanderThe patch worked for me, thanks!
Comment #13
maryedith CreditAttribution: maryedith commentedHello there,
I too am trying to implement a multi-file upload for drupal 7. I have followed this thread to the best of my ability and am still experiencing a problem. No widget appears for an image field to which I have assigned the 'mupload' widget. It simply says 'Add new file(s)'... no button or widget.
I am using drupal core 7.9
I have plupload 7.x-1.0-beta2 from plupload-7.x-1.0-vingborg.tar_.gz installed.
I have mupload 7.x from the sandbox: http://drupal.org/sandbox/vingborg/1138512 installed.
I have the libraries module 7.x-2.x-dev.
Within the plupload module directory I have installed plupload 1.5.1.1, the currently available. I realize an earlier version was recommended, and I wonder if this is the problem? Then where can I obtain that version?
Any suggestions will be appreciated!
maryedith
Comment #14
rv0 CreditAttribution: rv0 commented@maryedith
try the patch from #7 in #1146562: Handling required files correctly
and the one from #30 here for upload #1164552: image upload: only the last image is save
Comment #15
nadavsinai CreditAttribution: nadavsinai commentedHi,
I came across the same problems as maryedith from #13, but I already tried all patches to plupload and mupload modules.
no button/other widget interface appears in my imagefield. I also noticed that the main media upload interface becomes broken
when I add plupload integration module.
I run 7.9 core, plupload library 1.4.3.2 (in libraries folder and in module subfolder - just to try...), plupload module that has been patched and mupload that has been patched. I tried clearing all caches numerous times...
nothing works, I'd appreciate any help I need multiple file uploads for my clients site ASAP....
I'm kind of new to PHP and drupal, but I will try to contribute whatever findings I will come across...
Thanks
Nadav Sinai
Comment #16
workonwomen CreditAttribution: workonwomen commentedHave the same issue as #15... subscribe.
Comment #17
mrryanjohnston CreditAttribution: mrryanjohnston commentedSame issue as #13
Comment #18
Hydra CreditAttribution: Hydra commentedI can confirm that the patch in #7 worked exactly as expected! I'm using plupload 7.x-1.0-beta3 and mupload.
About #13, I dont think its caused by the version of plupload, I'm using the newest one as well. The readme says something about 1.4.x or higher! 1.5.x is defently higher. Maby you overpatched the module or something simular, tryed to reconstruct on a clean drupal installation?
Comment #19
workonwomen CreditAttribution: workonwomen commentedWhat is your version?
Comment #20
mrryanjohnston CreditAttribution: mrryanjohnston commentedI'm able to patch with #7's, but I get some odd behavior when choosing to remove files: it deletes all but the last picture in the queue. Also, I cannot arrange the photos in the slideshow according the the queue. Does #18 experience the same behavior?
Comment #21
tun@sun CreditAttribution: tun@sun commentedHello,
I don't use plupload-7.x-1.0dev module.
I have plupload-7.x-1.0-vingborg.tar_.gz module in the modules directory and placed plupload js library(1.5.1.1) under it.
But, after install them, I can't see widget type mupload for file/image in my content type.
pls, what is my wrong way?