Thanks to visit codestin.com
Credit goes to github.com

Skip to content

PUT request not responding to multipart/form-data #9226

Closed
@greatwitenorth

Description

@greatwitenorth

In the recent build of Laravel it seems to not be responding to PUT requests that are encoded with multipart/form-data. It only works with application/x-www-form-urlencoded. I believe the http spec states that it should work no matter what you use.

For example when sending a request using mulitpart/form-data I observe the following:

$d1 = file_get_contents("php://input")); // Contains the correct data
$d2 = Input::all(); // This returns an empty result

I tried to track it back through the code and the issue definitely seems to be the Symfony Request package and not the Laravel framework itself. The data never gets passed to the Input object in Laravel.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions