mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +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) {
|
func (cli *QiniuClient) Upload(params UploadParams) (string, error) {
|
||||||
key := params.Name
|
key := params.Name
|
||||||
if !params.NoCompletePath {
|
if !params.NoCompletePath {
|
||||||
key = filepath.Base(params.Name)
|
key = completeQiniuKey(params.Name)
|
||||||
}
|
}
|
||||||
|
|
||||||
mac := qbox.NewMac(cli.Conf.AccessKey,
|
mac := qbox.NewMac(cli.Conf.AccessKey,
|
||||||
|
|||||||
Reference in New Issue
Block a user