From 1e5944c6900469eef50ab8784c707420488f4172 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 25 May 2010 03:58:39 +0000 Subject: [PATCH] API CHANGE Removed deprecated File::loadUploaded(), please use Upload directly instead! (from r100495) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105580 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- filesystem/File.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/filesystem/File.php b/filesystem/File.php index c386b1a44..edf23c6c5 100755 --- a/filesystem/File.php +++ b/filesystem/File.php @@ -236,23 +236,6 @@ class File extends DataObject { return SAPPHIRE_DIR . "/images/app_icons/{$ext}_32.gif"; } - - /** - * Save an file passed from a form post into this object. - * DEPRECATED Please instanciate an Upload-object instead and pass the file - * via {Upload->loadIntoFile()}. - * - * @param $tmpFile array Indexed array that PHP generated for every file it uploads. - * @return Boolean|string Either success or error-message. - */ - function loadUploaded($tmpFile) { - user_error('File::loadUploaded is deprecated, please use the Upload class directly.', E_USER_NOTICE); - - $upload = new Upload(); - $upload->loadIntoFile($tmpFile, $this); - - return $upload->isError(); - } /** * Should be called after the file was uploaded