-
Notifications
You must be signed in to change notification settings - Fork 135
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
Comments
比如上传文件D:/foo:
CURL:
curl --location --request POST 'http://localhost/chfs/upload' --form 'folder=/' --form 'file=@/D:/foo'
JS:
var data = new FormData();
data.append("folder", "/");
data.append("file", fileInput.files[0], "/D:/foo");
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function() {
if(this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("POST", "http://localhost/chfs/upload");
xhr.send(data);
在 2020-10-13 15:14:26,"icesvalley" <[email protected]> 写道:
额,很抱歉打扰你,不知道你是否还在,软件给出的api并不知道要如何使用,在获取列表和下载那里很轻松就可以了,可是在上传那里无论如何都是返回错误参数,通过抓包在用curl命令去上传也是失败的,所以请求完善一下api或者给个curl的命令用法,麻烦了
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
请问,我手机要传文件给电脑,文件是/sdcard/1.txt, |
电脑用curl还是不行,,, |
你好请问api删除文件要怎么弄,我删除的时候总会把文档下全部文件删除 |
Cookie 登录后获取的Token |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
额,很抱歉打扰你,不知道你是否还在,软件给出的api并不知道要如何使用,在获取列表和下载那里很轻松就可以了,可是在上传那里无论如何都是返回错误参数,通过抓包在用curl命令去上传也是失败的,所以请求完善一下api或者给个curl的命令用法,麻烦了
The text was updated successfully, but these errors were encountered: