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.

CommentFileSizeAuthor
#13 nowidget.jpg15.05 KBmaryedith
#7 required-upload-fix-1140666-7.patch1.12 KBAnonymous (not verified)
#6 required-upload-fix-1140666-6.patch803 bytesAnonymous (not verified)
#1 plupload-7.x-1.0-vingborg.tar_.gz125.54 KBvingborg
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vingborg’s picture

Thank 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.

Scott J’s picture

Thank you. It's working great!

Plupload v1.4.3.2 in libraries folder.

vingborg’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Title: You must at least upload one file. » Problem saving/deleting node: "You must at least upload one file."
Project: Mupload » Plupload integration
Version: » 7.x-1.x-dev
Status: Closed (fixed) » Active

What 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.

Anonymous’s picture

Status: Active » Needs review
FileSize
803 bytes

Here is a patch for plupload.js

Anonymous’s picture

Attached 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.)

TripX’s picture

sub

mdorman’s picture

The patch from #7 fixed this issue for me.

rv0’s picture

Hmm

#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

rv0’s picture

Status: Needs review » Closed (duplicate)

marking as duplicate and closing

Danny Englander’s picture

The patch worked for me, thanks!

maryedith’s picture

FileSize
15.05 KB

Hello 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

rv0’s picture

@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

nadavsinai’s picture

Hi,
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

workonwomen’s picture

Have the same issue as #15... subscribe.

mrryanjohnston’s picture

Same issue as #13

Hydra’s picture

I 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?

workonwomen’s picture

What is your version?

mrryanjohnston’s picture

I'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?

tun@sun’s picture

Hello,
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?