summaryrefslogtreecommitdiffstats
path: root/apps/files/js/filelist.js
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-11-13 12:46:12 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-11-17 09:43:44 +0100
commitf9536b08096ed1c80391af36d33a18198be1fced (patch)
tree392bab69b73d2046f082d5205c34214002dc34d6 /apps/files/js/filelist.js
parente051ef1d686721e8ccbedab9ee92b5876f206800 (diff)
downloadnextcloud-server-f9536b08096ed1c80391af36d33a18198be1fced.tar.gz
nextcloud-server-f9536b08096ed1c80391af36d33a18198be1fced.zip
Check for target folder available quota when uploading
Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r--apps/files/js/filelist.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 86e978d178b..30bc35551d6 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1236,6 +1236,7 @@
mtime: parseInt($el.attr('data-mtime'), 10),
type: $el.attr('data-type'),
etag: $el.attr('data-etag'),
+ quotaAvailableBytes: $el.attr('data-quota'),
permissions: parseInt($el.attr('data-permissions'), 10),
hasPreview: $el.attr('data-has-preview') === 'true',
isEncrypted: $el.attr('data-e2eencrypted') === 'true'
@@ -1495,6 +1496,7 @@
"data-mime": mime,
"data-mtime": mtime,
"data-etag": fileData.etag,
+ "data-quota": fileData.quotaAvailableBytes,
"data-permissions": permissions,
"data-has-preview": fileData.hasPreview !== false,
"data-e2eencrypted": fileData.isEncrypted === true