Skip to content

Commit a3a4801

Browse files
committed
fea: 上传文件
1 parent 5060d59 commit a3a4801

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bootstrap/services/filesystem/local.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ func (l *Local) FormFile(c *gin.Context, up, to string) (string, error) {
4040
if err := c.SaveUploadedFile(file, dst); err != nil {
4141
return "", err
4242
}
43-
dst = strings.Trim(dst, "/")
43+
4444
return l.url + to, nil
4545
}

0 commit comments

Comments
 (0)