diff options
author | Vincent Petry <vincent@nextcloud.com> | 2020-10-27 11:48:41 +0100 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2020-10-27 11:48:41 +0100 |
commit | f7fd8d520d3eb259886423fe6541cf56b5d5fd37 (patch) | |
tree | e801847868fe4603975d93efcf3383bc8e70557d /lib | |
parent | d38a7c6710227a17a6bbd2a3e423668c202b57c3 (diff) | |
download | nextcloud-server-f7fd8d520d3eb259886423fe6541cf56b5d5fd37.tar.gz nextcloud-server-f7fd8d520d3eb259886423fe6541cf56b5d5fd37.zip |
Add optional size field for the file obj
Add optional size field for the file rich object definition.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/RichObjectStrings/Definitions.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/public/RichObjectStrings/Definitions.php b/lib/public/RichObjectStrings/Definitions.php index bb976a8bd41..6f2bb649294 100644 --- a/lib/public/RichObjectStrings/Definitions.php +++ b/lib/public/RichObjectStrings/Definitions.php @@ -254,6 +254,12 @@ class Definitions { 'description' => 'The file name which should be used in the visual representation', 'example' => 'file.txt', ], + 'size' => [ + 'since' => '21.0.0', + 'required' => false, + 'description' => 'The file size in bytes', + 'example' => '3145728', + ], 'path' => [ 'since' => '11.0.0', 'required' => true, |