Skip to content

Conversation

@LIlGG
Copy link
Member

@LIlGG LIlGG commented Jan 5, 2026

What type of PR is this?

/kind feature

What this PR does / why we need it:

支持上传媒体文件(粘贴、拖拽或点击上传按钮)

当前暂时只支持图片上传

已知问题:

  • 邮件通知中的媒体数据是相对路径,导致无法显示。
  • 上传成功但评论失败时会导致冗余数据。
  • 上传后评论未通过或被删除无法回滚上传数据

需要 halo-dev/halo#8177 的支持

How to test it?

测试图片上传功能是否正常可用
测试在 Halo 中上传之后是否正常可以显示。
测试停止此插件后 Halo 中上传的媒体数据是否可以正常显示。

Which issue(s) this PR fixes:

Fixes #197

Does this PR introduce a user-facing change?

支持通过复制粘贴、拖拽、点击上传按钮上传媒体文件

@f2c-ci-robot f2c-ci-robot bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Jan 5, 2026
@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Jan 5, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign ruibaby for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Reduced minimum image resize dimensions in the editor and improved the upload process by revoking blob URLs after upload. Updated CSS to style image resize handles and wrappers for better UX. Also performed minor code formatting and cleanup in Java backend classes related to settings, rate limiting, and media upload endpoints.
@LIlGG LIlGG changed the title WIP: feat: support media upload feat: support media upload Jan 6, 2026
@LIlGG LIlGG marked this pull request as ready for review January 6, 2026 04:08
@f2c-ci-robot f2c-ci-robot bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature Categorizes issue or PR as related to a new feature. release-note Denotes a PR that will be considered when it comes time to generate release notes.

Projects

None yet

1 participant