From 668644817b035fe82fc80da43b2cbe823c65d154 Mon Sep 17 00:00:00 2001 From: zarkones Date: Mon, 12 Feb 2024 22:23:31 +0100 Subject: [PATCH] download file - bug fix --- files.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files.go b/files.go index f439bcf..658e996 100644 --- a/files.go +++ b/files.go @@ -70,7 +70,7 @@ func RequestFileUpload(uploadedByAgentId, originalName string) (file File, err e } func DownloadFile(fileID string) (fileContent []byte, err error) { - req, err := http.NewRequest(http.MethodGet, *BaseURL+"/v1/files/", nil) + req, err := http.NewRequest(http.MethodGet, *BaseURL+"/v1/files/"+fileID, nil) if err != nil { return nil, err }