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:
commit
c45b418bd0
@ -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,
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user