Commit 17b5e95f authored by quicksketch's avatar quicksketch

#519358: Form enctype attribute is set incorrectly.

parent 00f6ebad
......@@ -307,7 +307,7 @@ function filefield_widget(&$form, &$form_state, $field, $items, $delta = 0) {
if (empty($form['#validate']) || !in_array('filefield_node_form_validate', $form['#validate'])) {
$form['#validate'][] = 'filefield_node_form_validate';
}
$form['#attributes'] = array('enctype' => 'multipart/form-data');
$form['#attributes']['enctype'] = 'multipart/form-data';
module_load_include('inc', 'filefield', 'field_widget');
module_load_include('inc', $field['widget']['module'], $field['widget']['module'] .'_widget');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment