We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
当前http有两种预览方式 :http://127.0.0.1:8080/filedownload?fileId=1 、http://127.0.0.1:8080/file/test.txt 这两种方式本质上都是通过url访问的,在旧系统中可能无法支持这样的方式。 预期结果: 根据kkfile的预览原理,是后端获取到url后再对文件进行请求,但是现在文件有各种请求头、请求方式(get\post)、sessionToken、url、等。所以能否在kkfile的访问地址上上传多个参数:用于告诉kkfile对文件的访问地址呢?我觉得这样是一个合理的支持: 例如:127.0.0.1:8012?type=requestFile&url=encodeURIComponent(url)&method=get¶ms=encodeURIComponent(params)&body=encodeURIComponent(body)&headers=encodeURIComponent(headers)&responseType=blob
解释:
The text was updated successfully, but these errors were encountered:
后端在获取到这些参数后进行参数组装在对服务器进行请求
Sorry, something went wrong.
需要重构下载方法
No branches or pull requests
当前http有两种预览方式 :http://127.0.0.1:8080/filedownload?fileId=1 、http://127.0.0.1:8080/file/test.txt
这两种方式本质上都是通过url访问的,在旧系统中可能无法支持这样的方式。
预期结果:
根据kkfile的预览原理,是后端获取到url后再对文件进行请求,但是现在文件有各种请求头、请求方式(get\post)、sessionToken、url、等。所以能否在kkfile的访问地址上上传多个参数:用于告诉kkfile对文件的访问地址呢?我觉得这样是一个合理的支持:
例如:127.0.0.1:8012?type=requestFile&url=encodeURIComponent(url)&method=get¶ms=encodeURIComponent(params)&body=encodeURIComponent(body)&headers=encodeURIComponent(headers)&responseType=blob
解释:
The text was updated successfully, but these errors were encountered: