diff --git a/readme.md b/readme.md index 512b896..13d6feb 100644 --- a/readme.md +++ b/readme.md @@ -314,14 +314,14 @@ options:{ fileFieldName(file){ return file.name }, withCredentials: false, requestHeaders: {'User-Agent': 'So Aanyip'}, - beforeChoose : function()[ + beforeChoose : function(){ return user.isAllowUpload }, chooseFile : function(files){ console.log('you choose',typeof files == 'string' ? files : files[0].name) }, beforeUpload : function(files,mill){ - if(typeof files == string) return true + if(typeof files == 'string') return true if(files[0].size<1024*1024*20){ files[0].mill = mill return true @@ -762,14 +762,14 @@ options:{ fileFieldName(file){ return file.name }, withCredentials: false, requestHeaders: {'User-Agent': 'So Aanyip'}, - beforeChoose : function()[ + beforeChoose : function(){ return user.isAllowUpload }, chooseFile : function(files){ console.log('you choose',typeof files == 'string' ? files : files[0].name) }, beforeUpload : function(files,mill){ - if(typeof files == string) return true + if(typeof files == 'string') return true if(files[0].size<1024*1024*20){ files[0].mill = mill return true