Skip to content

Conversation

@grtsinry43
Copy link

@grtsinry43 grtsinry43 commented Nov 29, 2025

Description

Extend the editor image-upload pipeline:

  • FileService now delegates custom uploads to a fixed serverless function (file/editor-image-upload) and supports an optional CDN domain via the existing setCustomDomain. This keeps local/S3 flows intact while letting users implement any upload logic in serverless code.
  • Add the corresponding configuration options back in (default values + DTO fields) so the editor image upload settings page explicitly exposes all three modes (self-hosted, S3, serverless), and update the “Editor Image Upload” docs to describe the new behavior.
  • Update tests/docs to match (S3 uploader spec ordering, link e2e test now stubs ServerlessService, docs navigation adds the new chapter).

Linked Issues

resolve #2469 mx-space/mx-admin#1001

Additional Context

Custom-upload users must create/enable the file/editor-image-upload function per the new docs; otherwise backend will throw “云函数上传未配置或未启用.”
Docs PR lives in docs repo; please publish after merging core (don't forget to change the version in docs).

@grtsinry43 grtsinry43 marked this pull request as ready for review November 29, 2025 06:47
@safedep
Copy link

safedep bot commented Nov 29, 2025

SafeDep Report Summary

Green Malicious Packages Badge Green Vulnerable Packages Badge Green Risky License Badge

No dependency changes detected. Nothing to scan.

This report is generated by SafeDep Github App

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

Successfully merging this pull request may close these issues.

能否完善文件上传功能和API

1 participant