feat(backend): enhance FinishUploadTask response to include file metadata such as size, mime type, hash, and type

This commit is contained in:
keven1024
2025-04-30 15:10:50 +08:00
parent f2c115b09c
commit b315a03c05

View File

@@ -174,6 +174,10 @@ func FinishUploadTask(c echo.Context) error {
})
return utils.HTTPSuccessHandler(c, map[string]any{
"message": "文件上传完成并合并成功",
"size": fileInfo.FileSize,
"mime_type": fileInfo.MimeType,
"hash": fileInfo.FileHash,
"type": models.FileTypeUpload,
"id": r.FileId,
})
}