diff --git a/core/modules/file/file.module b/core/modules/file/file.module index 4a45b51..3f54ea2 100644 --- a/core/modules/file/file.module +++ b/core/modules/file/file.module @@ -741,7 +741,7 @@ function file_ajax_upload() { // Invalid request. drupal_set_message(t('An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (@size) that this server supports.', array('@size' => format_size(file_upload_max_size()))), 'error'); $response = new AjaxResponse(); - return $response->addCommand(new ReplaceCommand(NULL, theme('status_messages'))); + return $response->addCommand(new PrependCommand(NULL, theme('status_messages'))); } list($form, $form_state) = ajax_get_form();