We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2be436 commit 5c9c00fCopy full SHA for 5c9c00f
src/RequestFactory.php
@@ -32,8 +32,8 @@ public function create() : Request
32
$contentType = $this->request->headers->get('Content-Type');
33
34
if (\is_string($contentType) && \str_starts_with($contentType, 'multipart/form-data')) {
35
- if ($method === 'POST' && \array_key_exists('operations', $this->request->toArray())) {
36
- return $this->applyJsonFactory(Json::fromString($this->request->get('operations')));
+ if ($method === 'POST' && $this->request->getPayload()->has('operations')) {
+ return $this->applyJsonFactory(Json::fromString($this->request->getPayload()->get('operations')));
37
}
38
39
throw new InvalidMultipartRequest();
0 commit comments