From 1ad3433ccb54327b1c9f4124d90ed1f796867662 Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole Date: Wed, 31 Dec 2014 14:38:24 +0000 Subject: [PATCH] Revert "Issue #92944 by jhedstrom, SiliconMind: Drupal won't report file upload error when UPLOAD_ERR_NO_TMP_DIR occurs" This reverts commit 1cb897de83fad9778ee1564bc73a90719440c09e. --- core/modules/file/file.module | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/core/modules/file/file.module b/core/modules/file/file.module index 82e9f9654b8..9438f4ac38a 100644 --- a/core/modules/file/file.module +++ b/core/modules/file/file.module @@ -734,21 +734,6 @@ function file_save_upload($form_field_name, $validators = array(), $destination $files[$i] = FALSE; continue; - case UPLOAD_ERR_NO_TMP_DIR: - drupal_set_message(t('The file %file could not be saved because server is missing a temporary folder.', array('%file' => $file_info->getFilename())), 'error'); - $files[$i] = FALSE; - continue; - - case UPLOAD_ERR_CANT_WRITE: - drupal_set_message(t('The file %file could not be saved because server is unable to write to disk.', array('%file' => $file_info->getFilename())), 'error'); - $files[$i] = FALSE; - continue; - - case UPLOAD_ERR_EXTENSION: - drupal_set_message(t('The file %file could not be saved because a PHP extension stopped the file upload. PHP does not provide a way to ascertain which extension caused the file upload to stop; examining the list of loaded extensions with phpinfo() may help.', array('%file' => $file_info->getFilename())), 'error'); - $files[$i] = FALSE; - continue; - case UPLOAD_ERR_OK: // Final check that this is a valid upload, if it isn't, use the // default error handler.