Merge pull request #7553 from dhensby/pulls/4.0/upload-be-gone

DOCS Add required import for docs example
This commit is contained in:
Damian Mooyman 2017-11-03 12:12:58 +13:00 committed by GitHub
commit 5f8613631f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -827,6 +827,7 @@ Usages of `UploadField` will need to be upgraded as below.
use SilverStripe\Forms\FieldList;
-use SilverStripe\AssetAdmin\Forms\UploadField;
+use SilverStripe\Forms\FileHandleField;
+use SilverStripe\Core\Injector\Injector;
use SilverStripe\ORM\DataObject;
class MyClass extends DataObject