retrun size

This commit is contained in:
divyam234 2023-08-18 12:54:19 +05:30
parent 2fb8e8ca9a
commit 3eb08f42dd
2 changed files with 2 additions and 0 deletions

View file

@ -13,6 +13,7 @@ type UploadPartOut struct {
PartNo int `json:"partNo"`
TotalParts int `json:"totalParts"`
ChannelID int64 `json:"channelId"`
Size int64 `json:"size"`
}
type UploadOut struct {

View file

@ -145,6 +145,7 @@ func (us *UploadService) UploadFile(c *gin.Context) (*schemas.UploadPartOut, *ty
ChannelID: partUpload.ChannelID,
PartNo: partUpload.PartNo,
TotalParts: partUpload.TotalParts,
Size: partUpload.Size,
}
return out, nil