Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

$this->request->getPut() does not work (With postman)

Hey,

When i do print_r( $this->request->getPut() ); i get this:

Array ( [------WebKitFormBoundaryYFpH1SM2LulfABbb Content-Disposition:form-data;name] => "password"

test1234 ------WebKitFormBoundaryYFpH1SM2LulfABbb--

)

Do someone know why? I cant just $this->request-getPut('password');



112.1k
Accepted
answer

getPut only works with form data send as put. Maybe you want $this->request->getJsonRawBody(true) ?



1.5k

Thanks, that actually helped.

I had to switch my postman to x-www-form-urlencoded insted of form-data and set my content-type to application/x-www-form-urlencoded

:)