Added FPM-based support for too big files

This commit is contained in:
rr- 2015-06-28 09:59:47 +02:00
parent 3b1544eff3
commit 79df9b56d3

View file

@ -30,6 +30,9 @@ final class InputReader extends \ArrayObject
if (!isset($_FILES[$fileName]))
return null;
if (!$_FILES[$fileName]['tmp_name'])
throw new \Exception('File is probably too big.');
return file_get_contents($_FILES[$fileName]['tmp_name']);
}
}