Fixed file name when uploading
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
kolaente 2019-10-13 17:37:18 +02:00
parent 7d6e6d49fd
commit 6ab5e3baa0
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,8 @@ func UploadTaskAttachment(c echo.Context) error {
return handler.HandleHTTPError(err, c)
}
fileHeaders := form.File["fileHeaders"]
// TODO: document that parameter
fileHeaders := form.File["files"]
for _, file := range fileHeaders {
// We create a new attachment object here to have a clean start
ta := models.TaskAttachment{