Skip to content

Commit

Permalink
download file - bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zarkones committed Feb 12, 2024
1 parent 2722c91 commit 6686448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 6686448

Please sign in to comment.