summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.admin.inc1
-rw-r--r--modules/system/system.module1
-rw-r--r--modules/upload/upload.module1
-rw-r--r--modules/user/user.pages.inc1
4 files changed, 3 insertions, 1 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index febfcde06..970c0488a 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -517,6 +517,7 @@ function system_theme_settings(&$form_state, $key = '') {
}
}
}
+ $form['#attributes'] = array('enctype' => 'multipart/form-data');
$form = system_settings_form($form);
// We don't want to call system_settings_form_submit(), so change #submit.
diff --git a/modules/system/system.module b/modules/system/system.module
index e2e243cff..151c26979 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -341,7 +341,6 @@ function system_elements() {
$type['file'] = array(
'#input' => TRUE,
'#size' => 60,
- '#enctype' => 'multipart/form-data',
);
diff --git a/modules/upload/upload.module b/modules/upload/upload.module
index 8dd3cb6d5..8f223ad1a 100644
--- a/modules/upload/upload.module
+++ b/modules/upload/upload.module
@@ -258,6 +258,7 @@ function upload_form_alter(&$form, $form_state, $form_id) {
}
else {
$form['attachments']['wrapper'] += _upload_form($node);
+ $form['#attributes']['enctype'] = 'multipart/form-data';
}
}
$form['#submit'][] = 'upload_node_form_submit';
diff --git a/modules/user/user.pages.inc b/modules/user/user.pages.inc
index 9d01f3c5a..ada98b6fb 100644
--- a/modules/user/user.pages.inc
+++ b/modules/user/user.pages.inc
@@ -246,6 +246,7 @@ function user_profile_form($form_state, $account, $category = 'account') {
'#submit' => array('user_edit_delete_submit'),
);
}
+ $form['#attributes']['enctype'] = 'multipart/form-data';
return $form;
}