mirror of
https://github.com/nextcloud/server.git
synced 2026-03-29 13:53:55 -04:00
use === to compare empty string ''
This commit is contained in:
parent
831b7ca803
commit
868d7b956d
1 changed files with 1 additions and 1 deletions
|
|
@ -253,7 +253,7 @@ $(document).ready(function() {
|
|||
//singleFileUploads is on by default, so the data.files array will always have length 1
|
||||
add: function(e, data) {
|
||||
|
||||
if(data.files[0].type == '' && data.files[0].size == 4096)
|
||||
if(data.files[0].type === '' && data.files[0].size == 4096)
|
||||
{
|
||||
data.textStatus = 'dirorzero';
|
||||
data.errorThrown = t('files','Unable to upload your file as it is a directory or has 0 bytes');
|
||||
|
|
|
|||
Loading…
Reference in a new issue