Skip to content

Commit

Permalink
use temp inside upload setting's dir
Browse files Browse the repository at this point in the history
  • Loading branch information
jibon57 committed Sep 12, 2024
1 parent 006d293 commit 13c3de2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/models/file_upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 13c3de2

Please sign in to comment.