Browse Source

increase max allowed file size

pull/122/head
Aaron Parecki 5 years ago
parent
commit
2a8899754a
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/helpers.php

+ 2
- 2
lib/helpers.php View File

@ -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 !!

Loading…
Cancel
Save