如何在put请求中获取php中的文件名 [英] How to get filename in php in put request

查看:111
本文介绍了如何在put请求中获取php中的文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我们可以使用

file_get_contents("php://input");

但是我如何在put请求中获取文件名?

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.

这篇关于如何在put请求中获取php中的文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆