Hi, I get the following *error after clicking "Upload"

https://dl.dropbox.com/u/8495276/1304/multimage-error.png

*I am using a slightly modified form however. In my template.php I have the following snippet which changes the default "Submit" button for this node's form to a custom image:

function MYTHEME_form_alter(&$form, &$form_state, $form_id) {

  if($form_id == 'MYNODE_node_form') {
 
    //Replace Save button with custom image and class: 
    
    $form['actions']['submit']['#type'] = 'image_button';  
    $form['actions']['submit']['#src'] = drupal_get_path('theme', 'CC') . '/images/CUSTOM-SAVE-BTN.png'; 
    $form['actions']['submit']['#attributes']['class'][] = 'customSaveCLASS'; 
  }
}

If I disable this snippet, the Multiupload Imagefield Widget module works fine. But then I don't have a custom image for my node Submit button.

I'm just wondering how to create a workaround. Any suggestions are appreciated!

Comments

Roar-1’s picture

Update: fixed it by adding an additional attribute to my custom submit button.

$form['actions']['submit']['#attributes']['name']= 'save'; 

The name was defaulting to 'submit' which was causing a conflict with how JQuery handles attributes.

Roar-1’s picture

Status: Active » Closed (works as designed)