From f7fd8d520d3eb259886423fe6541cf56b5d5fd37 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 27 Oct 2020 11:48:41 +0100 Subject: [PATCH] Add optional size field for the file obj Add optional size field for the file rich object definition. Signed-off-by: Vincent Petry --- lib/public/RichObjectStrings/Definitions.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/public/RichObjectStrings/Definitions.php b/lib/public/RichObjectStrings/Definitions.php index bb976a8bd4..6f2bb64929 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,