mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-04 13:52:26 +08:00
fix: upload file path
This commit is contained in:
@@ -42,7 +42,7 @@ type UploadParams struct {
|
||||
func (cli *QiniuClient) Upload(params UploadParams) (string, error) {
|
||||
key := params.Name
|
||||
if !params.NoCompletePath {
|
||||
key = filepath.Base(params.Name)
|
||||
key = completeQiniuKey(params.Name)
|
||||
}
|
||||
|
||||
mac := qbox.NewMac(cli.Conf.AccessKey,
|
||||
|
||||
Reference in New Issue
Block a user