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

上传目录占位符新增 #109

Open
20HuiHui opened this issue Jan 2, 2024 · 6 comments
Open

上传目录占位符新增 #109

20HuiHui opened this issue Jan 2, 2024 · 6 comments

Comments

@20HuiHui
Copy link

20HuiHui commented Jan 2, 2024

希望可以新增一个占位符,代表 halo 的文件夹名称,这样可以使得 halo 中文件夹和 S3 中文件夹名称一致

@20HuiHui 20HuiHui changed the title 上传占位符新增 上传目录占位符新增 Jan 2, 2024
@longjuan
Copy link
Member

longjuan commented Jan 2, 2024

没懂,能举个例子吗

@20HuiHui
Copy link
Author

20HuiHui commented Jan 3, 2024

没懂,能举个例子吗

现在 halo 里面的文件路径和对象存储的路径是不一致的,比如 halo 里面有个 Java 文件夹存在一个 1.png 文件,对应对象存储的的路径可能是 2024-01-01 文件夹下 1.png,希望在对象存储中也可以创建对应的 Java 文件夹,然后把 1.png 存入到这个文件夹中

@longjuan
Copy link
Member

longjuan commented Jan 3, 2024

halo 里面有个 Java 文件夹

Halo 的哪里有文件夹?本地存储?

@20HuiHui
Copy link
Author

20HuiHui commented Jan 4, 2024

halo 里面有个 Java 文件夹

Halo 的哪里有文件夹?本地存储?

附件分组名称

@longjuan
Copy link
Member

longjuan commented Jan 4, 2024

目前插件感知不到附件属于哪个分组的,暂时无法实现。
可以自己多建几个不同文件夹的策略来实现。

@JohnNiang
Copy link
Member

Hi @20HuiHui ,目前附件的分组功能只是一个逻辑上的分组,并不是物理上的分组。也就意味着只要是通过 Halo 上传的附件,存储位置主要取决于 S3 插件的配置。

Hi @longjuan ,不过也可以考虑在 Halo core 中给插件提供更多的上传信息,例如分组。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants