Upload files with PUT method

Hi!

For my RESTFUL API server I’m trying using PUT method for uploading file. Actions started as reading php://input. So, how can pass file name or some other parameters to action and display them?

Thanks.