Home > Backend Development > PHP Tutorial > 在ie中上传图片,图片名包含中文上传出错,但在其他浏览器没问题。

在ie中上传图片,图片名包含中文上传出错,但在其他浏览器没问题。

WBOY
Release: 2016-06-06 20:33:57
Original
1346 people have browsed it

在ie中上传图片,图片名包含中文上传出错,但在其他浏览器没问题。
URL 协议 方法 结果 类型 已接收 已花费 发起程序 等候‎‎ 开始‎‎ 请求‎‎ 响应‎‎ 已读取缓存‎‎ 差距‎‎
http://up.qiniu.com/ HTTP POST 401

--vwqkirvscusubmgecmvfmjqrdqvmjwrp
Content-Disposition: form-data; name="fileName"

鎸夐敭鍥?jpg
--vwqkirvscusubmgecmvfmjqrdqvmjwrp
Content-Disposition: form-data; name="Filename"

鎸夐敭鍥?jpg
--vwqkirvscusubmgecmvfmjqrdqvmjwrp
Content-Disposition: form-data; name="pictitle"

鎸夐敭鍥?jpg
--vwqkirvscusubmgecmvfmjqrdqvmjwrp
Content-Disposition: form-data; name="key"

鎸夐敭鍥?jpg
--vwqkirvscusubmgecmvfmjqrdqvmjwrp
Content-Disposition: form-data; name="fileNameFormat"

{time}{rand:6}
--vwqkirvscusubmgecmvfmjqrdqvmjwrp
Content-Disposition: form-data; name="token"

VG0x7RHn13Lm3s3xkkpwo5_mamVW1pP1_PzmfLzb:5SZkgLXq-zMxYioTM2vWIHWwCMc=:
--vwqkirvscusubmgecmvfmjqrdqvmjwrp
Content-Disposition: form-data; name="file"; filename="鎸夐敭鍥?jpg"
Content-Type: application/octet-stream


vwqkirvscusubmgecmvfmjqrdqvmjwrp
Content-Disposition: form-data; name="Upload"

Submit Query
--vwqkirvscusubmgecmvfmjqrdqvmjwrp--

回复内容:

在ie中上传图片,图片名包含中文上传出错,但在其他浏览器没问题。
URL 协议 方法 结果 类型 已接收 已花费 发起程序 等候‎‎ 开始‎‎ 请求‎‎ 响应‎‎ 已读取缓存‎‎ 差距‎‎
http://up.qiniu.com/ HTTP POST 401

--vwqkirvscusubmgecmvfmjqrdqvmjwrp
Content-Disposition: form-data; name="fileName"

鎸夐敭鍥?jpg
--vwqkirvscusubmgecmvfmjqrdqvmjwrp
Content-Disposition: form-data; name="Filename"

鎸夐敭鍥?jpg
--vwqkirvscusubmgecmvfmjqrdqvmjwrp
Content-Disposition: form-data; name="pictitle"

鎸夐敭鍥?jpg
--vwqkirvscusubmgecmvfmjqrdqvmjwrp
Content-Disposition: form-data; name="key"

鎸夐敭鍥?jpg
--vwqkirvscusubmgecmvfmjqrdqvmjwrp
Content-Disposition: form-data; name="fileNameFormat"

{time}{rand:6}
--vwqkirvscusubmgecmvfmjqrdqvmjwrp
Content-Disposition: form-data; name="token"

VG0x7RHn13Lm3s3xkkpwo5_mamVW1pP1_PzmfLzb:5SZkgLXq-zMxYioTM2vWIHWwCMc=:
--vwqkirvscusubmgecmvfmjqrdqvmjwrp
Content-Disposition: form-data; name="file"; filename="鎸夐敭鍥?jpg"
Content-Type: application/octet-stream


vwqkirvscusubmgecmvfmjqrdqvmjwrp
Content-Disposition: form-data; name="Upload"

Submit Query
--vwqkirvscusubmgecmvfmjqrdqvmjwrp--

encodeURI('中文文件名.jpg');//"%E4%B8%AD%E6%96%87%E6%96%87%E4%BB%B6%E5%90%8D.jpg"

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template