Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
complete #85
此PR添加了
OpenDAL
的集成。 理论上可以支持 https://opendal.apache.org/docs/rust/opendal/services/index.html 中的所有服务。 但由于需要获取文件的可下载链接,所以只能支持具有presign
功能的服务,包括Azblob
,Gcs
,Oss
,Obs
,S3
,Wasabi
。后续,也许可以修改 https://github.com/vastsa/FileCodeBox/blob/master/apps/base/views.py#L85 支持文件通过服务器中转下载,进而支持 OpenDAL 的所有服务。
存在的问题:
OpenDAL 实现了 presign 功能,但还未在 python binding 中暴露出来。因此,
get_file_url
的实现目前是无法运行的。cc @vastsa , 如果作者接受这个 PR 的话,我可以在 OpenDAL 打开一个 issue, 并完成暴露 presign API 的工作
相关的 issues: #66, #68, #69