mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Made Upload::load() error more useful
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@100499 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
8d5faeb10d
commit
972ac38137
@ -87,7 +87,7 @@ class Upload extends Controller {
|
||||
if(!$this->file) $this->file = new File();
|
||||
|
||||
if(!is_array($tmpFile)) {
|
||||
user_error("File::loadUploaded() Not passed an array. Most likely, the form hasn't got the right enctype", E_USER_ERROR);
|
||||
user_error("Upload::load() Not passed an array. Most likely, the form hasn't got the right enctype", E_USER_ERROR);
|
||||
}
|
||||
|
||||
if(!$tmpFile['size']) {
|
||||
|
Loading…
Reference in New Issue
Block a user