Hi,

I have content type with an imagefield as attribute. The imagefield is optional: my users don't have to upload images if they want to create a node.

But each time they create a node, and they press "Submit", they get the following Javascript alert:

No images have been selected yet. If you continue (OK), a node without any images will be created. If you want to
add some images to queue, click "Cancel" and use the icon on the left to queue some images.

I don't want this message to be shown. Is there a setting where I can disable this? Or do I need to hack into swfupload-settings.tpl.php?

Thanks in advance,
Jochen

Comments

Funksmaname’s picture

I removed the message lines (68 and 72) and now it works regardless of 0 images without warning...
This should probably be noted as a bug though as the code appears to my n00bish eyes to only warn if the imagefield is required. In my case the image field was NOT required, but the message kept coming up.