We've got a node with an imagefield on it. http://drupal.org/project/filefield_paths is also used, to put the uploaded image in to a dedicated images/gallery/[term-raw] directory. this works fine if you save the node. however if we use the submit again button then the image doesn't get copied to the destination directory as specified.

I suspect this is because you are dabbling with the submit handlers for the node form?

Comments

milos.kroulik’s picture

subscribe

budda’s picture

Should

'#submit' => array('node_form_submit', 'submitagain_node_form_submit'),

not be appending submit handlers to the existing array of them?

moshe weitzman’s picture

This module adds a button specific handler, so there are no submit handlers to append to. There is presumably a form level submit handler for your image but thats not getting called? I don't know if it should be. Seems like a bug in core or we need a better understanding of how button handlers should behave.

moshe weitzman’s picture

Status: Active » Postponed (maintainer needs more info)