mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API CHANGE Remove File->uploadMetadataFields(), use new UploadField instead
This commit is contained in:
parent
4345eaa61b
commit
fb3c18d6d2
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user