diff options
author | Simon Bartlett <simon@securitycompass.com> | 2015-02-06 15:07:17 -0500 |
---|---|---|
committer | Simon Bartlett <simon@securitycompass.com> | 2015-02-06 15:07:17 -0500 |
commit | c95c3f6fd898da4b7aba83b73d2785d5061151fd (patch) | |
tree | 89b892e7b181722c524ef43de1f0b41dd3b57646 /app/controllers/files.js | |
parent | 7a00ec3538e61622c3eb00eefff64cce306cee8d (diff) | |
download | lets-chat-c95c3f6fd898da4b7aba83b73d2785d5061151fd.zip lets-chat-c95c3f6fd898da4b7aba83b73d2785d5061151fd.tar.gz lets-chat-c95c3f6fd898da4b7aba83b73d2785d5061151fd.tar.bz2 |
Limit file uploads to 100MB
Diffstat (limited to 'app/controllers/files.js')
-rw-r--r-- | app/controllers/files.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/files.js b/app/controllers/files.js index 544a9f6..5cb67ba 100644 --- a/app/controllers/files.js +++ b/app/controllers/files.js @@ -31,7 +31,8 @@ module.exports = function() { var fileUpload = multer({
limits: {
- files: 1
+ files: 1,
+ fileSize: 100000000
}
});
|