Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

软件的api不懂如何使用 #14

Open
1965514404 opened this issue Oct 13, 2020 · 7 comments
Open

软件的api不懂如何使用 #14

1965514404 opened this issue Oct 13, 2020 · 7 comments

Comments

@1965514404
Copy link

额,很抱歉打扰你,不知道你是否还在,软件给出的api并不知道要如何使用,在获取列表和下载那里很轻松就可以了,可是在上传那里无论如何都是返回错误参数,通过抓包在用curl命令去上传也是失败的,所以请求完善一下api或者给个curl的命令用法,麻烦了

@docblue
Copy link
Owner

docblue commented Oct 13, 2020 via email

@1965514404
Copy link
Author

请问,我手机要传文件给电脑,文件是/sdcard/1.txt,
用curl要如何做

@1965514404
Copy link
Author

M 92`49XI}X27334S4SYD

@1965514404
Copy link
Author

4@66I1K$544DLSSZ@FH1X

@1965514404
Copy link
Author

电脑用curl还是不行,,,

@1965514404
Copy link
Author

你好请问api删除文件要怎么弄,我删除的时候总会把文档下全部文件删除

@aonoa
Copy link

aonoa commented Mar 10, 2021

curl --location --request POST 'http://xxx.xxxx.xx/chfs/upload' \
--header 'Cookie: JWT=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2MiOiJmb3giLCJleHAiOjE2MDY0NjA1NDB9.2W7Dkfmm1YxjwD_UeGu6Xwa3Ur8T7h1C7hEVotbSL_8' \
--form 'file=@/C:/Users/xxxxxxx/AppData/Local/Postman/app-7.31.1/SquirrelSetup.log' \
--form 'folder=/'

Cookie 登录后获取的Token
file 要上传的文件
folder 上传的目录

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants