feat: refactor S3 upload and add configurable options #2515
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Description
把 S3 配置项给独立出来了




修改了备份功能,支持自定义文件目录以及格式
新增了图床设置,关闭 S3 图床则默认上传到服务器,同样支持自定义路径以及格式,支持限制大小和允许的扩展名
另外在编辑器中新增了插入图片按钮,可选上传图片(上传位置跟随设定)如果上传图片后不选择插入或者关闭对话框则会尝试去删除目标位置上传的图片(因为未使用)
注:此项需要配合 mx-space/mx-admin#1009
Linked Issues
#2469
Additional context
None