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

关于上传文件问题 #179

Open
31415926535x opened this issue Jun 14, 2021 · 0 comments
Open

关于上传文件问题 #179

31415926535x opened this issue Jun 14, 2021 · 0 comments
Labels
bug Something isn't working todo Feature to be implemented

Comments

@31415926535x
Copy link

当文件确实可以上传时(即保证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)

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

@spencerwooo spencerwooo added bug Something isn't working todo Feature to be implemented labels Jun 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working todo Feature to be implemented
Projects
None yet
Development

No branches or pull requests

2 participants