Skip to content

Commit

Permalink
fea: 上传文件
Browse files Browse the repository at this point in the history
  • Loading branch information
cyz-home committed Mar 3, 2023
1 parent 5060d59 commit a3a4801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap/services/filesystem/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ func (l *Local) FormFile(c *gin.Context, up, to string) (string, error) {
if err := c.SaveUploadedFile(file, dst); err != nil {
return "", err
}
dst = strings.Trim(dst, "/")

return l.url + to, nil
}

0 comments on commit a3a4801

Please sign in to comment.