diff options
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Upload.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php index dd7012211..2a3f53d4b 100644 --- a/system/libraries/Upload.php +++ b/system/libraries/Upload.php @@ -137,13 +137,14 @@ class CI_Upload { // Is $_FILES[$field] set? If not, no reason to continue.
if ( ! isset($_FILES[$field]))
{
- $this->set_error('upload_userfile_not_set');
+ $this->set_error('upload_no_file_selected');
return FALSE;
}
// Is the upload path valid?
if ( ! $this->validate_upload_path())
{
+ $this->set_error('upload_no_filepath');
return FALSE;
}
|