mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-29 07:59:31 +02:00
MINOR Made Upload::load() error more useful (from r100499)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105582 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
ecb6c8cb3f
commit
16c93b1284
|
@ -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