summaryrefslogtreecommitdiff
path: root/lib/upload.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-03-31 15:11:22 +0200
committerJules Laplace <julescarbon@gmail.com>2018-03-31 15:11:22 +0200
commit6feecf8d38944067963435be1524f1b532bec38c (patch)
tree80311945debe1cc280496bd88b0471d7c28f39be /lib/upload.js
parentad6fff63c69a529096b5ea9d1fc81bd9e95bb54d (diff)
parent19d8a1315cfaa51cb342570cd31df525e56e0513 (diff)
Merge branch 'master' of ghghgh.us:luckyplop
Diffstat (limited to 'lib/upload.js')
-rw-r--r--lib/upload.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/upload.js b/lib/upload.js
index 82ea9b5..385e626 100644
--- a/lib/upload.js
+++ b/lib/upload.js
@@ -37,8 +37,8 @@ module.exports.put = function (key, file, opt) {
else if (file.size < 10) {
err = "File too small"
}
- else if (file.size > 2097152) { // 2mb limit
- err = "File too large. Uploads can be a maximum of 2 mb."
+ else if (file.size > 1024*1024*3) { // 3mb limit
+ err = "File too large. Uploads can be a maximum of 3 mb."
}
if (err) {