Skip to content
This repository was archived by the owner on Jan 1, 2022. It is now read-only.
This repository was archived by the owner on Jan 1, 2022. It is now read-only.

关于上传文件问题 #179

@31415926535x

Description

@31415926535x

当文件确实可以上传时(即保证ms权限设置正确,接口无误,但文件无法打开时),使用curl测试接口应该是这样的:

curl --request POST 'https://xxxxx/uploads/?upload=test1.jpg&key=pwd' --data-binary @'./test.jpg'

这样会将当前文件夹下的 test.jpg 上传到 ./uploads/test1.jpg ,,

这里应该必须使用 --data-binary 来上传,,使用 -D 会将相应的参数传到指定的文件中,,而使用 -F 参数上传会出现相应的参数+文件数据的形式保存,,导致文件打开失败。

#61 (comment)

(当然,还是不能实现大文件传输,,可以通过写一个脚本分割后上传吧。。)😀

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtodoFeature to be implemented

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions