小编xxx*_*xxx的帖子

如何使用curl上传一个图像文件"Content-Type:multipart/related"

curl --trace trace.txt -X POST -H'Content-Type:multipart/related; boundary = boundary_1234' - data-binary $' - boundary_1234\r \nContent-Type:application/json; charset = UTF-8\r \n\r \n {\ r \n\t"title":"TestFile"\ r \n}\r \n\r \n - boundary_1234\r \nContent-Type: image/jpeg\r \n\r \n' - 数据二进制'@ Image0177.jpg' - 数据二进制$'\ r \n - boundary_1234 - \r \n''localhost:3000/google /上传/驱动器/ V2 /文件?uploadType =多

它没有成功,image0177.jpg大小17k,但上传谷歌驱动器6bit,为什么?

curl

3
推荐指数
1
解决办法
2662
查看次数

标签 统计

curl ×1