fix: fix export file url

This commit is contained in:
skeris 2024-10-28 22:17:17 +03:00
parent 666a4b9f90
commit 56fa65bd19

@ -131,7 +131,7 @@ func WriteDataToExcel(buffer io.Writer, questions []model.Question, answers []mo
} else if q.Type == model.TypeFile {
urle := response[index].Content
if urle != "" && !strings.HasPrefix(urle, "https") {
urle = s3Prefix + urle
urle = strings.ReplaceAll(s3Prefix,bucketImages, bucketAnswers) + fmt.Sprint(q.Id)+ "/" + urle
}
fmt.Println("ORRRRR", urle, s3Prefix)
display, tooltip := urle, urle