summaryrefslogtreecommitdiffstats
path: root/apps/files/js/file-upload.js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-12-05 22:40:07 +0100
committerBackportbot <backportbot-noreply@rullzer.com>2018-12-06 12:21:02 +0000
commitd500c4babfdd02181932ffdbf20bd3ddabdd8184 (patch)
treea4fd1cd86aa2d7152ba7db921ac5758b11424daa /apps/files/js/file-upload.js
parent1f94126f59f7cdb1e45448e4380db8ff74858633 (diff)
downloadnextcloud-server-d500c4babfdd02181932ffdbf20bd3ddabdd8184.tar.gz
nextcloud-server-d500c4babfdd02181932ffdbf20bd3ddabdd8184.zip
Do not show general warning on free space error
Fixes #12588 Probably needs more fixing for the other cases. But this is the quick fix I could come up with for now. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files/js/file-upload.js')
-rw-r--r--apps/files/js/file-upload.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js
index 8d18761acc8..ed7cd4c2a66 100644
--- a/apps/files/js/file-upload.js
+++ b/apps/files/js/file-upload.js
@@ -1024,7 +1024,7 @@ OC.Uploader.prototype = _.extend({
// target folder does not exist any more
OC.Notification.show(t('files', 'Target folder "{dir}" does not exist any more', {dir: upload.getFullPath()} ), {type: 'error'});
self.cancelUploads();
- } else if (status === 507) {
+ } else if (data.textStatus === 'notenoughspace') {
// not enough space
OC.Notification.show(t('files', 'Not enough free space'), {type: 'error'});
self.cancelUploads();