\n\n这个问题可能与 #7149 的修复有关。文件中通过 `file.name()` 获取文件名。建议通过 `FilePart` 的 `filename()` 获取文件名。\n\n/area core\n/kind bug\n\n### 复现步骤\n\n_No response_\n\n### 相关日志输出\n\n```shell\n\n```\n\n### 附加信息\n\n_No response_",[3227,3228,3229],{"name":3198,"color":3199},{"name":3140,"color":3141},{"name":3230,"color":3231},"priority/important-soon","eb6420",7274,"文章默认编辑器上传文件失败","2025-03-07T07:55:01Z","https://github.com/halo-dev/halo/issues/7274",0.6819513,{"description":3238,"labels":3239,"number":3241,"owner":3146,"repository":3147,"state":3168,"title":3242,"updated_at":3243,"url":3244,"score":3245},"### 系统信息\n\n- 外部访问地址:\n- 启动时间: 2024-10-15 10:28\n- 版本: 2.20.2\n- 构建时间: 2024-10-14 20:52\n- Git Commit: 45aae9c\n- Java: IBM Semeru Runtime Open Edition / 21.0.4+7-LTS\n- 数据库: MySQL Community Server - GPL / 8.0.27\n- 操作系统: Linux / 5.4.0-42-generic\n- 已激活主题: [Sakura 2.4.0](https://github.com/LIlGG/halo-theme-sakura.git)\n- 已启动插件:\n - [highlight.js 代码高亮 1.3.2](https://github.com/halo-sigs/plugin-highlightjs)\n - [页面静态缓存 1.2.1](https://github.com/halo-sigs/plugin-page-cache)\n - [静态网页服务 1.0.0-alpha.5](https://www.halo.run/store/apps/app-gFkMn)\n - [编辑器超链接卡片 1.0.3](https://github.com/halo-sigs/plugin-editor-hyperlink-card)\n - [Markdown / HTML 内容块 1.2.0](https://github.com/halo-dev/plugin-hybrid-edit-block)\n - [应用市场 1.5.1](https://www.halo.run/store/apps/app-VYJbF)\n - [Metrics Graph 1.0.0](https://github.com/guqing/plugin-metrics-graph)\n - [KaTeX 2.1.0](https://github.com/halo-sigs/plugin-katex)\n - [瞬间 1.8.0](https://github.com/halo-sigs/plugin-moments)\n - [搜索组件 1.6.2](https://github.com/halo-dev/plugin-search-widget)\n - [链接管理 1.5.0](https://github.com/halo-sigs/plugin-links)\n - [图库管理 1.4.0](https://github.com/halo-sigs/plugin-photos)\n - [ByteMD 1.4.0](https://github.com/ruibaby/plugin-bytemd)\n - [评论组件 2.5.0](https://github.com/halo-dev/plugin-comment-widget)\n\n### 使用的哪种方式运行?\n\nDocker\n\n### 发生了什么?\n\n文章编辑界面,直接粘贴vx的截图,上传失败。同时,在附件库上传,也没有上传按钮。\n\n\n\n\n\n### 复现步骤\n\n1. 打开文章,ctrl+v粘贴qq或vx的截图\n2. 失败报错:No static resource apis/uc.api.content.halo.run/v1alpha1/attachments.\n\n### 相关日志输出\n\n2024-10-15T10:31:53.316+08:00 INFO 6 --- [run.halo.app.plugin.DefaultReactiveSettingFetcher-t-1] r.h.a.e.controller.RequestSynchronizer : Starting request(v1alpha1/ConfigMap) synchronizer...\n2024-10-15T10:31:53.316+08:00 INFO 6 --- [run.halo.app.plugin.DefaultReactiveSettingFetcher-t-1] r.h.a.e.controller.RequestSynchronizer : Started request(v1alpha1/ConfigMap) synchronizer.\n2024-10-15T10:31:53.357+08:00 INFO 6 --- [run.halo.app.core.reconciler.PluginReconciler-t-1] r.h.a.core.reconciler.PluginReconciler : Initializing setting and config map for plugin PluginCommentWidget\n2024-10-15T10:31:53.378+08:00 INFO 6 --- [run.halo.app.core.reconciler.PluginReconciler-t-1] r.h.a.core.reconciler.PluginReconciler : Initialized setting plugin-comment-widget-settings for plugin PluginCommentWidget\n2024-10-15T10:31:53.382+08:00 INFO 6 --- [run.halo.app.core.reconciler.PluginReconciler-t-1] r.h.a.core.reconciler.PluginReconciler : Initialized config map plugin-comment-widget-configmap for plugin PluginCommentWidget\n2024-10-15T10:31:53.397+08:00 INFO 6 --- [run.halo.app.core.reconciler.PluginReconciler-t-1] r.h.a.core.reconciler.PluginReconciler : Resolving logo resource for plugin PluginCommentWidget\n2024-10-15T10:31:53.398+08:00 INFO 6 --- [run.halo.app.core.reconciler.PluginReconciler-t-1] r.h.a.core.reconciler.PluginReconciler : Resolving main.js and style.css for plugin PluginCommentWidget\n2024-10-15T10:31:53.400+08:00 INFO 6 --- [run.halo.app.core.reconciler.PluginReconciler-t-1] r.h.a.core.reconciler.PluginReconciler : Starting plugin PluginCommentWidget\n2024-10-15T10:31:53.400+08:00 INFO 6 --- [run.halo.app.core.reconciler.PluginReconciler-t-1] r.h.a.core.reconciler.PluginReconciler : Started plugin PluginCommentWidget\n2024-10-15T10:38:04.134+08:00 INFO 6 --- [parallel-2] run.halo.cache.page.PageCacheWebFilter : Cached response for https://qingshi-web.top/archives/dpli-lun\n2024-10-15T10:44:54.989+08:00 INFO 6 --- [run.halo.app.core.reconciler.PostReconciler-t-1] run.halo.cache.page.CacheSentry : Received post updated event, and evicted page cache\n2024-10-15T10:44:55.620+08:00 WARN 6 --- [reactor-tcp-epoll-3] o.a.l.i.v.VectorizationProvider : Java vector incubator module is not readable. For optimal vector performance, pass '--add-modules jdk.incubator.vector' to enable Vector API.\n2024-10-15T11:04:27.320+08:00 INFO 6 --- [run.halo.app.core.reconciler.PostReconciler-t-1] run.halo.cache.page.CacheSentry : Received post updated event, and evicted page cache\n2024-10-15T11:04:43.649+08:00 INFO 6 --- [run.halo.app.core.reconciler.PostReconciler-t-1] run.halo.cache.page.CacheSentry : Received post updated event, and evicted page cache\n2024-10-15T11:05:51.909+08:00 INFO 6 --- [run.halo.app.core.reconciler.PostReconciler-t-1] run.halo.cache.page.CacheSentry : Received post updated event, and evicted page cache\n2024-10-15T11:13:23.780+08:00 INFO 6 --- [run.halo.app.core.reconciler.PostReconciler-t-1] run.halo.cache.page.CacheSentry : Received post updated event, and evicted page cache\n2024-10-15T11:14:16.327+08:00 INFO 6 --- [run.halo.app.core.reconciler.PostReconciler-t-1] run.halo.cache.page.CacheSentry : Received post updated event, and evicted page cache\n\n### 附加信息\n\n\n\n",[3240],{"name":3143,"color":3144},6868,"上传附件出错","2024-10-15T06:24:10Z","https://github.com/halo-dev/halo/issues/6868",0.6847733,["Reactive",3247],{},["Set"],["ShallowReactive",3250],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fT1hB5vFVnLwM7NUVnWPczqstlrhl7QY2TGBofsewCuE":-1},"/halo-dev/halo/6750"]