You are here

function filefield_file_upload_submit in FileField 6.2

Submit callback for the "Upload" button next to each file upload field.

1 string reference to 'filefield_file_upload_submit'
filefield_file_upload_form in ./filefield.widget.inc
The filefield widget for not (yet) existing files.

File

./filefield.widget.inc, line 169
FileField: Defines a CCK file field type.

Code

function filefield_file_upload_submit($form, &$form_state) {
  $field = $form_state['clicked_button']['#field'];
  $delta = $form_state['clicked_button']['#delta'];
  _filefield_file_upload($form_state, $field, $delta);

  // Rebuild the form with the new uploaded-file state (hopefully).
  node_form_submit_build_node($form, $form_state);
}