Added FPM-based support for too big files
This commit is contained in:
parent
3b1544eff3
commit
79df9b56d3
1 changed files with 3 additions and 0 deletions
|
@ -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']);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue