e www - shot - upgrade max shot size to 20m
This commit is contained in:
parent
249573146b
commit
3c1136577c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue