From e2e201ac368f4c0800c83232b483a1642754bd76 Mon Sep 17 00:00:00 2001 From: divyam234 <47589864+divyam234@users.noreply.github.com> Date: Mon, 18 Dec 2023 16:42:49 +0530 Subject: [PATCH] sync-ui --- pkg/services/upload.go | 2 ++ ui/teldrive-ui | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/services/upload.go b/pkg/services/upload.go index 7bcadba8..f9d10222 100644 --- a/pkg/services/upload.go +++ b/pkg/services/upload.go @@ -147,6 +147,8 @@ func (us *UploadService) UploadFile(c *gin.Context) (*schemas.UploadPartOut, *ty fileSize := c.Request.ContentLength + defer c.Request.Body.Close() + if uploadQuery.ChannelID == 0 { channelId, err = GetDefaultChannel(c, userId) if err != nil { diff --git a/ui/teldrive-ui b/ui/teldrive-ui index f5e563e9..f5a2e43f 160000 --- a/ui/teldrive-ui +++ b/ui/teldrive-ui @@ -1 +1 @@ -Subproject commit f5e563e9b3a66bcb9779d9af782ee6f9767c86d3 +Subproject commit f5a2e43f0e63c4602f03a45b5b26249f4d3e50c9