mirror of
https://github.com/woodchen-ink/webp_server_go.git
synced 2025-07-18 05:32:02 +08:00
fix(router): change image file size limit from 100KB to 30KB
This commit is contained in:
parent
f241273bc4
commit
317ff650e3
@ -135,7 +135,7 @@ func Convert(c *fiber.Ctx) error {
|
||||
}
|
||||
|
||||
// 处理图片
|
||||
isSmall, err := helper.IsFileSizeSmall(rawImageAbs, 100*1024) // 100KB
|
||||
isSmall, err := helper.IsFileSizeSmall(rawImageAbs, 30*1024) // 30KB
|
||||
if err != nil {
|
||||
processErr = fmt.Errorf("检查文件大小时出错: %v", err)
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user