Skip to content

增加上传附件前压缩和图片加水印等功能的插件支持 #5426

Open
@longjuan

Description

@longjuan

你当前使用的版本

2.13.0

描述一下此特性

目前,halo 无法实现上传前压缩、转格式、加水印等操作。
我认为这些功能应该由插件提供,在上传时由插件按一定顺序将如下数据修改替换,即可灵活实现上述功能(类似于AOP)

public Mono<Attachment> upload(
@NonNull String username,
@NonNull String policyName,
@Nullable String groupName,
@NonNull FilePart filePart,
@Nullable Consumer<Attachment> beforeCreating) {

或者有其他更好的方法吗?

附加信息

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/pluginIssues or PRs related to the Plugin Providerkind/featureCategorizes issue or PR as related to a new feature.priority/awaiting-more-evidenceLowest priority. Possibly useful, but not yet enough support to actually get it done.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions