fixes Orange-Management#202

This commit is contained in:
Dennis Eichhorn 2020-02-02 15:49:46 +01:00
parent 9a7c3ad0f4
commit 3713e3fc11
2 changed files with 9 additions and 8 deletions

View File

@ -73,14 +73,6 @@ final class Request extends RequestAbstract
*/ */
protected array $hash = []; protected array $hash = [];
/**
* Uploaded files.
*
* @var array
* @since 1.0.0
*/
protected array $files;
/** /**
* Constructor. * Constructor.
* *
@ -177,6 +169,7 @@ final class Request extends RequestAbstract
\parse_str($content, $temp); \parse_str($content, $temp);
$this->data += $temp; $this->data += $temp;
} elseif (\stripos($_SERVER['CONTENT_TYPE'], 'multipart/form-data') !== false) { } elseif (\stripos($_SERVER['CONTENT_TYPE'], 'multipart/form-data') !== false) {
$content = file_get_contents('php://input');
$stream = \fopen('php://input', 'r'); $stream = \fopen('php://input', 'r');
$partInfo = null; $partInfo = null;
$boundary = null; $boundary = null;

View File

@ -42,6 +42,14 @@ abstract class RequestAbstract implements MessageInterface
*/ */
protected array $data = []; protected array $data = [];
/**
* Files data.
*
* @var array
* @since 1.0.0
*/
protected array $files = [];
/** /**
* Request lock. * Request lock.
* *