Merge pull request #20 from thomiceli/fix/trim-filenames

Trim filenames
This commit is contained in:
Thomas Miceli 2023-04-29 20:21:13 +02:00 committed by GitHub
commit c45b418bd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -240,7 +240,7 @@ func processCreate(ctx echo.Context) error {
} }
dto.Files = append(dto.Files, models.FileDTO{ dto.Files = append(dto.Files, models.FileDTO{
Filename: name, Filename: strings.Trim(name, " "),
Content: escapedValue, Content: escapedValue,
}) })
} }