In my RESTful API say I have a picture the user can update via a PUT request.
And let’s say each of these pictures has a custom name the user can assign them so they can easily browse them.
What I’d like to do is send a put request that contains the updated file AND the new name for the picture, but I’m not sure how to have PHP separate the updated file from the new name when reading from php://input
Does anyone know how to do this?
Place scalar parameters (i. e. old name, new name) into the query string.