e www - shot - upgrade max shot size to 20m

This commit is contained in:
Carsten Haitzler 2015-09-22 19:09:54 +09:00
parent 249573146b
commit 3c1136577c
1 changed files with 2 additions and 2 deletions

View File

@ -48,8 +48,8 @@ function dothumb($f, $thumb, $new_w, $new_h) {
}
ob_start();
############ limit - 6 mb.
$data = file_get_contents('php://input', NULL, NULL, 0, 6 * 1024 * 1024);
############ limit - 20 mb.
$data = file_get_contents('php://input', NULL, NULL, 0, 20 * 1024 * 1024);
############ magic jpeg signature
$jpeg_match = "\xff\xd8\xff\xe0";
$jpeg_magic = substr($data, 0, 4);