summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2019-10-20 13:47:30 +0100
committerAaron Parecki <aaron@parecki.com>2019-10-20 13:47:30 +0100
commit2a8899754a45857706cab4f1bd3ec3ecf7054358 (patch)
treebcc28a579fe95768bb68bf24d30d99800cc36e1f
parent79aadc4af06ec509213dd050ab986184f412ef05 (diff)
increase max allowed file size
-rw-r--r--lib/helpers.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/helpers.php b/lib/helpers.php
index ebe1e7b..695ca27 100644
--- a/lib/helpers.php
+++ b/lib/helpers.php
@@ -407,8 +407,8 @@ function validate_photo(&$file) {
}
// You should also check filesize here.
- if ($file['size'] > 4000000) {
- throw new RuntimeException('Exceeded filesize limit.');
+ if ($file['size'] > 12000000) {
+ throw new RuntimeException('Exceeded Quill filesize limit.');
}
// DO NOT TRUST $file['mime'] VALUE !!