How to get filename in php in put request

后端 未结 2 1764
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-19 18:58

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?

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-19 19:18

    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.

提交回复
热议问题