From 13c3de2e77d9efd3e3e491604b116d9156902602 Mon Sep 17 00:00:00 2001 From: "Jibon L. Costa" Date: Thu, 12 Sep 2024 22:10:44 +0200 Subject: [PATCH] use `temp` inside upload setting's dir --- pkg/models/file_upload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/models/file_upload.go b/pkg/models/file_upload.go index 53febcaf..d7af82d1 100644 --- a/pkg/models/file_upload.go +++ b/pkg/models/file_upload.go @@ -46,7 +46,7 @@ func (m *FileModel) ResumableFileUpload(c *fiber.Ctx) (*UploadedFileResponse, er return nil, errors.New("RoomId or RoomSid is empty") } - tempFolder := os.TempDir() + tempFolder := fmt.Sprintf("%s/tmp", m.app.UploadFileSettings.Path) chunkDir := fmt.Sprintf("%s/%s", tempFolder, req.ResumableIdentifier) switch c.Method() {