diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-12-05 22:40:07 +0100 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2018-12-06 12:21:02 +0000 |
commit | d500c4babfdd02181932ffdbf20bd3ddabdd8184 (patch) | |
tree | a4fd1cd86aa2d7152ba7db921ac5758b11424daa /apps/files/js/file-upload.js | |
parent | 1f94126f59f7cdb1e45448e4380db8ff74858633 (diff) | |
download | nextcloud-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.js | 2 |
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(); |