diff --git a/filesystem/File.php b/filesystem/File.php index 62c0a9d67..a23eea95c 100644 --- a/filesystem/File.php +++ b/filesystem/File.php @@ -862,23 +862,6 @@ class File extends DataObject { return new ValidationResult(true); } - - /** - * Allow custom fields for uploads in {@link AssetAdmin}. - * Similar to {@link getCMSFields()}, but a more restricted - * set of fields which can be reliably set on any file type. - * - * Needs to be enabled through {@link AssetAdmin::$metadata_upload_enabled} - * - * @return FieldList - */ - function uploadMetadataFields() { - $fields = new FieldList(); - $fields->push(new TextField('Title', $this->fieldLabel('Title'))); - $this->extend('updateUploadMetadataFields', $fields); - - return $fields; - } /** * @var Array Only use lowercase extensions in here.