mirror of
https://github.com/thomiceli/opengist
synced 2025-02-21 17:19:34 +01:00
Trim filenames
This commit is contained in:
parent
64d0818c9f
commit
2b3043ad5d
@ -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