mirror of
https://github.com/thomiceli/opengist.git
synced 2024-12-23 04:52:40 +00:00
Trim filenames
This commit is contained in:
parent
64d0818c9f
commit
2b3043ad5d
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue