kalcaddle / kodbox

kodbox is a file manager for web. It is a newly designed product based on kodexplorer. It is also a web code editor, which allows you to develop websites directly within the web browser.You can run kodbox either online or locally,on Linux, Windows or Mac based platforms
https://kodcloud.com
2.18k stars 373 forks source link

文件秒传接口需要传checkHashSimple参数 #276

Closed jdysya closed 2 months ago

jdysya commented 2 months ago

文档中文件秒传的接口描述中,请求参数如下

path: {source: 714}/            // 上传目录
name: test.txt                  // 上传文件名称
checkType: matchMd5             // 检测类型:md5
checkHashMd5: file_md5(file)    // 文件md5

通过观察网页版的请求发现,还需要传递checkHashSimple参数,才能正常使用该接口,请问这个参数如何获取 image

image
kalcaddle commented 2 months ago

需要自行计算一下 参考文档: https://doc.kodcloud.com/v2/#/explorer/checkHashSimple