Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Documentation relating to r101106 (from r101107)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@111588 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit 9cec4a007ec8e60e3bdc51c318f0ee137886f92a 1 parent 3db905b
Sam Minnée sminnee authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  filesystem/File.php
3  filesystem/File.php
View
@@ -638,12 +638,15 @@ function validate() {
* 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 FieldSet
*/
function uploadMetadataFields() {
$fields = new FieldSet();
$fields->push(new TextField('Title', $this->fieldLabel('Title')));
$this->extend('updateUploadMetadataFields', $fields);
+
return $fields;
}
Please sign in to comment.
Something went wrong with that request. Please try again.