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

插入正文的附件资源库里看不到 || The attachments inserted into the main text cannot be seen in the resource library. #343

Closed
fantasyzyc opened this issue Dec 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@fantasyzyc
Copy link

fantasyzyc commented Dec 19, 2024

插入正文的附件资源库里看不到,比如PDF文件,正文删除后附件在files中也依然存在


The attachments inserted into the main text cannot be seen in the resource library, such as PDF files. After the main text is deleted, the attachments still exist in files

@github-actions github-actions bot changed the title 插入正文的附件资源库里看不到 插入正文的附件资源库里看不到 || The attachments inserted into the main text cannot be seen in the resource library. Dec 19, 2024
Copy link

dosubot bot commented Dec 19, 2024

在 Blinko 中,附件在资源库中不可见的问题可能与文件管理和同步机制有关。当前的实现中,FilesAttachmentRender 组件负责在笔记正文中渲染附件,但在资源库中显示附件的具体机制可能没有完全实现或同步。

关于附件在正文删除后仍然存在于文件中的问题,Blinko 的文件管理逻辑位于 src/server/plugins/files.ts 中的 FileService 类中。删除文件时,该类会检查文件是否存储在 S3 或本地,并相应地删除文件和数据库中的条目[1]

如果附件在删除笔记后仍然存在于文件中,可能是因为没有触发相应的清理机制来自动删除未使用的文件。当前没有找到自动移除未使用文件的机制的具体实现[1]。这可能需要进一步的代码调整来确保在删除笔记时,相关的附件也会被正确地从文件系统和数据库中移除。

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot dosubot bot added the bug Something isn't working label Dec 19, 2024
@blinko-space
Copy link
Owner

fixed on v0.36.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants