Sorry, I've never seen PUT used that way. Usually it's for updating RESTful resources. If the only thing in the body is the file, perhaps you could file_put_contents('uploaded_file.type', file_get_contents(php://input)) ?