I know we can read put request in file using
file_get_contents(\"php://input\");
But how do i get the filename in the put request?
Filename is not sent as a part of the request. If you want to get the filename on the server side, you will have to pass it along by other means, i.e. query parameters.