After a few months of trying to use the bulk flash upload modules that can be used with this module, I am throwing in the towel. Too many of my users are using browsers that are simply not compatible with these functions or they can't figure out how to multi-select photos after they hit browse.

So, I have disabled those bulk upload modules and I simply want to have my members be able to have ten 'upload field' options where they can manually select photos and then hit upload. At the moment, when my members go to 'upload images' they are presented with exactly ONE browse option where they can upload ONE photo.

I HAVE searched the issue queue where I found these two issues:

http://drupal.org/node/343799
http://drupal.org/node/530606

I have also looked in the handbook for this module and found this:

2nd setup screen Node Gallery - Edit Configuration

Select the number of upload buttons(fields) for images on each upload page.
(Please use caution when adding more than 4 or 5 as php.ini settings may need to be changed.)

There is simply NOT a 2nd setup screen for 6x-3x-dev or at least not one that can be easily accessed.

I'm very sorry if this is obvious but I can honestly say that I have been searching for a solution for this for a month now and I simply cannot find any option to add multiple upload fields on the upload image page.

Thanks for your help in advance.

Comments

scroogie’s picture

plupload should actually be fine, because it supports different backends.

There is no such option as having multiple manual uploads in 3.x I fear.

mrwhizkid’s picture

Thanks for your reply. That's too bad...

I like the Plupload concept but I've had too many complaints. Lots of my members have to refresh the page 2-3 times before the upload 'widget' will appear.

Also, many of my members here in China are still using IE6 which doesn't seem to work with Plupload. And, when they can get Plupload to work, the 'drag' function only works in FF which means they have multiselect photos if they aren't using FF. Too complicated.

I suppose I can look at the previous code for NG and see if I can somehow patch 3x up to allow multiple upload fields?

scroogie’s picture

If you would do that, we can discuss an inclusion for the next release. I'll try to assist here in the issue queue if you need help.

You will need to edit the function node_gallery_upload_image_form() in node_gallery.pages.inc

It should be optional, though. Justin's blog about it might help: http://sysadminsjourney.com/content/2010/01/26/display-cck-filefield-or-...

mrwhizkid’s picture

Thanks for your reply and guidance. I am really bad at coding (although I am trying to learn more about PHP). OK...

From what I can see, it shouldn't be too much different from the 2.x version to add this feature. I found this code for the admin pages from 2.x:

$form['config']['number_uploads'] = array(
      '#type' => 'select',
      '#title' => t('Number of Uploads'),
      '#options' => drupal_map_assoc(range(1, 20)),
      '#multiple' => FALSE,
      '#description' => t('This allows you to specify how many image upload fields appear on the image upload page. By default, only 5 fields are provided. We recommend you do not have more than 5 fields if you are on a shared host or have limited resources. If you increase this to more than 5, we highly recommend you test this by uploading lots of large images prior to putting your site into production.'),
      '#default_value' => empty($gallery_config['number_uploads']) ? '5' : $gallery_config['number_uploads'],
    );

I'm guessing I could simply just add this to node_gallery.admin.inc.

But then we come to node_gallery_upload_image_form(). In the 2.x version of this module, we had this -- which I imagine simply pulled in the value from the admin page, correct?

$upload_number = is_numeric($config['number_uploads']) ? $config['number_uploads'] : 5;
  for ($i = 1; $i <= $upload_number; $i++) {
    $form['upload_wrapper']['uploads-'. $i] = array(
      '#type' => 'file',
      '#title' => t('Please select an image'),
    );

But I'm a little confused about how to integrate this code with this branch. Am I at least on the right track here?

scroogie’s picture

Title: Where are the settings for multiple uploads? » Include multiple HTML4 upload boxes as alternative to bulk-upload
Category: support » feature
Status: Active » Postponed

Better title. Switching to feature request.

crea’s picture

Subscribing

zengenuity’s picture

Status: Postponed » Closed (won't fix)

At this point, I won't be adding new features to the D6 version. If features are wanted for D7, please post a new issue.