1
0
mirror of https://github.com/thomiceli/opengist synced 2024-11-08 12:55:50 +01:00

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

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