mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 07:08:02 +00:00
feat(backend): enhance FinishUploadTask response to include file metadata such as size, mime type, hash, and type
This commit is contained in:
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user