windows下curl上传文件

2020-10-22 17:04:38 阅读:3 编辑

命令

curl  -X POST  -F file[]=@C:/destination2.jpg  -F uid=6  http://s.test/api/upload_image

用body来上传文件

curl  -X POST -T d:/qrcode/wechat2.jpg  http://103.45.xx.xx:3100/decode

上传多个文件

curl  -X POST  -F file[]=@D:/edison/electron-egg/out/latest.yml -F file[]=@D:/edison/electron-egg/out/shen_dev_tool-win-1.0.0-x64.exe.blockmap   http://im.n8y.test/api/shen_tool/uploadNewVersion