aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/js/files/client.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/js/files/client.js b/core/js/files/client.js
index 0daf7c9dc3f..baef0bb3221 100644
--- a/core/js/files/client.js
+++ b/core/js/files/client.js
@@ -117,6 +117,7 @@
* File sizes
*/
[Client.NS_DAV, 'getcontentlength'],
+ [Client.NS_DAV, 'quota-available-bytes'],
/**
* Preview availability
*/
@@ -394,6 +395,11 @@
data.mountType = mounTypeProp;
}
+ const quotaAvailableBytes = props['{' + Client.NS_DAV + '}quota-available-bytes']
+ if (!_.isUndefined(quotaAvailableBytes)) {
+ data.quotaAvailableBytes = quotaAvailableBytes
+ }
+
// extend the parsed data using the custom parsers
_.each(this._fileInfoParsers, function(parserFunction) {
_.extend(data, parserFunction(response, data) || {});