Skip to content

[PSR-7] Include multipart/form-data in parsed body specified behaviors #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 4, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/ServerRequestInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,9 @@ public function getFileParams();
/**
* Retrieve any parameters provided in the request body.
*
* If the request Content-Type is application/x-www-form-urlencoded and the
* request method is POST, this method MUST return the contents of $_POST.
* If the request Content-Type is either application/x-www-form-urlencoded
* or multipart/form-data, and the request method is POST, this method MUST
* return the contents of $_POST.
*
* Otherwise, this method may return any results of deserializing
* the request body content; as parsing returns structured content, the
Expand All @@ -154,9 +155,9 @@ public function getParsedBody();
*
* These MAY be injected during instantiation.
*
* If the request Content-Type is application/x-www-form-urlencoded and the
* request method is POST, use this method ONLY to inject the contents of
* $_POST.
* If the request Content-Type is either application/x-www-form-urlencoded
* or multipart/form-data, and the request method is POST, use this method
* ONLY to inject the contents of $_POST.
*
* The data IS NOT REQUIRED to come from $_POST, but MUST be the results of
* deserializing the request body content. Deserialization/parsing returns
Expand Down