从header中过滤文件名
preg_match('/Content-Disposition: .*filename=([^\/]+)\r\nContent-Transfer-Encoding/', $headers, $matches)
^\/ 匹配除/之外所有字符,包括空格,
从header中过滤文件名
preg_match('/Content-Disposition: .*filename=([^\/]+)\r\nContent-Transfer-Encoding/', $headers, $matches)
^\/ 匹配除/之外所有字符,包括空格,
转载于:https://www.cnblogs.com/xqnq2007/p/6718829.html