【发布时间】:2017-02-23 07:08:19
【问题描述】:
在上传之前我会对文件名进行urlencode,所以我的网址是
https://xxx-my.sharepoint.com/_api/v2.0/drive/items/root:/test+test.txt:/content 当我上传一个名为 test test.txt 的文件时
但是这个 API 不处理这个。
onedrive api: https://api.onedrive.com/v1.0/drive/items/root:/test+test.txt:/content可以正常运行
如何使用 PHP 保持准确的文件名
【问题讨论】:
-
如果我没有 urlencode ,我的服务器返回 400 错误(无效 URL)