Fix bug in uploadFile()'s URL.

This commit is contained in:
Yang Luo
2022-07-17 14:29:06 +08:00
parent a0a762aa6f
commit 8c7f235ee1
3 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,7 @@ func escapePath(path string) string {
func getUploadFileUrl(provider *Provider, fullFilePath string, hasTimestamp bool) (string, string) {
escapedPath := escapePath(fullFilePath)
escapedPath = escapePath(escapedPath)
objectKey := util.UrlJoin(util.GetUrlPath(provider.Domain), escapedPath)
host := ""