Forum Moderators: coopster
Outside of the security issues, you would process a PUT request by checking the $_SERVER['REQUEST_METHOD'] to make sure it is a PUT method, get your filename from REQUEST_URI or probably PATH_TRANSLATED, read $_SERVER['CONTENT_LENGTH'] bytes from STDIN (php://stdin/) [php.net], write your data out to the file and return your 201 or 204 status code to the user.