mirror of
https://github.com/thomiceli/opengist.git
synced 2024-12-23 04:52:40 +00:00
Merge pull request #20 from thomiceli/fix/trim-filenames
Trim filenames
This commit is contained in:
commit
c45b418bd0
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