curl 命令上传文件

后端接口为 http://localhost/upload

后端获取文件用的 keyfile

文件名为 1.png

等价于

input type="file" name="media">

curl 命令:

curl -F "file=@1.png" http://localhost/upload

posted @ 2022-01-02 09:35  博麗靈夢  阅读(772)  评论(0编辑  收藏  举报