Skip to content

Commit

Permalink
fix: error filename for the download feature of uss
Browse files Browse the repository at this point in the history
  • Loading branch information
saltbo committed Jul 15, 2021
1 parent ee8ec28 commit be1a744
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 16 deletions.
3 changes: 2 additions & 1 deletion internal/pkg/provider/provider_uss.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ func (p *USSProvider) SignedPutURL(key, filetype string, filesize int64, public

func (p *USSProvider) SignedGetURL(key, filename string) (url string, err error) {
expireAt := time.Now().Add(defaultDownloadExp).Unix()
upd := urlEncode(filename)
upt := p.buildUpt(expireAt, fmt.Sprintf("/%s", key))
return fmt.Sprintf("%s?_upt=%s", p.PublicURL(key), upt), err
return fmt.Sprintf("%s?_upd=%s&_upt=%s", p.PublicURL(key), upd, upt), err
}

func (p *USSProvider) PublicURL(key string) (url string) {
Expand Down
2 changes: 1 addition & 1 deletion web/dist/404.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang=zh-CN><head><title>ZPan</title><meta charset=UTF-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel=icon href=data:image/ico;base64,aWNv><link href=/css/chunk-1029f285.6a417862.css rel=prefetch><link href=/css/chunk-141f1d87.09f4af54.css rel=prefetch><link href=/css/chunk-22dece4e.1d3af35b.css rel=prefetch><link href=/css/chunk-251a991a.95c79dda.css rel=prefetch><link href=/css/chunk-26cc1f8f.a0ccf9af.css rel=prefetch><link href=/css/chunk-45cef788.9856c3c5.css rel=prefetch><link href=/css/chunk-4fae512a.09f4af54.css rel=prefetch><link href=/css/chunk-51b64701.09f4af54.css rel=prefetch><link href=/css/chunk-54185f58.0568edce.css rel=prefetch><link href=/css/chunk-58993c8c.e2cd8101.css rel=prefetch><link href=/css/chunk-5ace7ddd.c4f9a7a6.css rel=prefetch><link href=/css/chunk-5c753fc6.0c7d8b3b.css rel=prefetch><link href=/css/chunk-5db82f0c.1d3af35b.css rel=prefetch><link href=/css/chunk-757d2a9b.94e0f332.css rel=prefetch><link href=/css/chunk-77b2d504.439841c9.css rel=prefetch><link href=/css/chunk-875b66d8.c4257cb3.css rel=prefetch><link href=/css/chunk-f1a651ee.0b6e80a4.css rel=prefetch><link href=/js/chunk-1029f285.3f3fb7ed.js rel=prefetch><link href=/js/chunk-141f1d87.134b4c95.js rel=prefetch><link href=/js/chunk-22dece4e.5b037940.js rel=prefetch><link href=/js/chunk-251a991a.30030b5a.js rel=prefetch><link href=/js/chunk-26cc1f8f.ed4f6bdb.js rel=prefetch><link href=/js/chunk-2d0a4fde.0ba1761d.js rel=prefetch><link href=/js/chunk-2d0afa39.2ab6564e.js rel=prefetch><link href=/js/chunk-2d0bce73.87296d37.js rel=prefetch><link href=/js/chunk-2d0c5700.ba4feafc.js rel=prefetch><link href=/js/chunk-2d0d76a6.1785011d.js rel=prefetch><link href=/js/chunk-2d0daeb3.3a4afe1c.js rel=prefetch><link href=/js/chunk-2d207759.da15c3c5.js rel=prefetch><link href=/js/chunk-45cef788.7430cf3d.js rel=prefetch><link href=/js/chunk-4fae512a.7ef597e7.js rel=prefetch><link href=/js/chunk-51b64701.7ce23bcb.js rel=prefetch><link href=/js/chunk-54185f58.9e7f71af.js rel=prefetch><link href=/js/chunk-58993c8c.9d07e0a5.js rel=prefetch><link href=/js/chunk-5ace7ddd.e6cd2799.js rel=prefetch><link href=/js/chunk-5c753fc6.38a032a2.js rel=prefetch><link href=/js/chunk-5db82f0c.3a606d0e.js rel=prefetch><link href=/js/chunk-757d2a9b.8947d41a.js rel=prefetch><link href=/js/chunk-77b2d504.5cdabfdb.js rel=prefetch><link href=/js/chunk-875b66d8.51e8ddad.js rel=prefetch><link href=/js/chunk-c39e5b9a.eca09651.js rel=prefetch><link href=/js/chunk-f1a651ee.66d88ddf.js rel=prefetch><link href=/css/chunk-common.fd380bbd.css rel=preload as=style><link href=/css/chunk-vendors.0ddd2d7b.css rel=preload as=style><link href=/js/404.db242675.js rel=preload as=script><link href=/js/chunk-common.c48b0ea6.js rel=preload as=script><link href=/js/chunk-vendors.24bcca13.js rel=preload as=script><link href=/css/chunk-vendors.0ddd2d7b.css rel=stylesheet><link href=/css/chunk-common.fd380bbd.css rel=stylesheet></head><body><div id=app></div><script src=/js/chunk-vendors.24bcca13.js></script><script src=/js/chunk-common.c48b0ea6.js></script><script src=/js/index.e48787a1.js></script></body></html>
<!DOCTYPE html><html lang=zh-CN><head><title>ZPan</title><meta charset=UTF-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel=icon href=data:image/ico;base64,aWNv><link href=/css/chunk-1029f285.6a417862.css rel=prefetch><link href=/css/chunk-141f1d87.09f4af54.css rel=prefetch><link href=/css/chunk-22dece4e.1d3af35b.css rel=prefetch><link href=/css/chunk-251a991a.95c79dda.css rel=prefetch><link href=/css/chunk-26cc1f8f.a0ccf9af.css rel=prefetch><link href=/css/chunk-45cef788.9856c3c5.css rel=prefetch><link href=/css/chunk-4fae512a.09f4af54.css rel=prefetch><link href=/css/chunk-51b64701.09f4af54.css rel=prefetch><link href=/css/chunk-54185f58.0568edce.css rel=prefetch><link href=/css/chunk-58993c8c.e2cd8101.css rel=prefetch><link href=/css/chunk-5ace7ddd.c4f9a7a6.css rel=prefetch><link href=/css/chunk-5c753fc6.0c7d8b3b.css rel=prefetch><link href=/css/chunk-5db82f0c.1d3af35b.css rel=prefetch><link href=/css/chunk-757d2a9b.94e0f332.css rel=prefetch><link href=/css/chunk-77b2d504.439841c9.css rel=prefetch><link href=/css/chunk-7ff87093.4dff8bbb.css rel=prefetch><link href=/css/chunk-875b66d8.c4257cb3.css rel=prefetch><link href=/js/chunk-1029f285.3f3fb7ed.js rel=prefetch><link href=/js/chunk-141f1d87.134b4c95.js rel=prefetch><link href=/js/chunk-22dece4e.5b037940.js rel=prefetch><link href=/js/chunk-251a991a.30030b5a.js rel=prefetch><link href=/js/chunk-26cc1f8f.ed4f6bdb.js rel=prefetch><link href=/js/chunk-2d0a4fde.0ba1761d.js rel=prefetch><link href=/js/chunk-2d0afa39.2ab6564e.js rel=prefetch><link href=/js/chunk-2d0bce73.87296d37.js rel=prefetch><link href=/js/chunk-2d0c5700.ba4feafc.js rel=prefetch><link href=/js/chunk-2d0d76a6.1785011d.js rel=prefetch><link href=/js/chunk-2d0daeb3.3a4afe1c.js rel=prefetch><link href=/js/chunk-2d207759.da15c3c5.js rel=prefetch><link href=/js/chunk-45cef788.7430cf3d.js rel=prefetch><link href=/js/chunk-4fae512a.7ef597e7.js rel=prefetch><link href=/js/chunk-51b64701.7ce23bcb.js rel=prefetch><link href=/js/chunk-54185f58.9e7f71af.js rel=prefetch><link href=/js/chunk-58993c8c.9d07e0a5.js rel=prefetch><link href=/js/chunk-5ace7ddd.e6cd2799.js rel=prefetch><link href=/js/chunk-5c753fc6.38a032a2.js rel=prefetch><link href=/js/chunk-5db82f0c.3a606d0e.js rel=prefetch><link href=/js/chunk-757d2a9b.8947d41a.js rel=prefetch><link href=/js/chunk-77b2d504.5cdabfdb.js rel=prefetch><link href=/js/chunk-7ff87093.3583f6a7.js rel=prefetch><link href=/js/chunk-875b66d8.51e8ddad.js rel=prefetch><link href=/js/chunk-c39e5b9a.eca09651.js rel=prefetch><link href=/css/chunk-common.fd380bbd.css rel=preload as=style><link href=/css/chunk-vendors.0ddd2d7b.css rel=preload as=style><link href=/js/404.eb3cae81.js rel=preload as=script><link href=/js/chunk-common.a83d086e.js rel=preload as=script><link href=/js/chunk-vendors.24bcca13.js rel=preload as=script><link href=/css/chunk-vendors.0ddd2d7b.css rel=stylesheet><link href=/css/chunk-common.fd380bbd.css rel=stylesheet></head><body><div id=app></div><script src=/js/chunk-vendors.24bcca13.js></script><script src=/js/chunk-common.a83d086e.js></script><script src=/js/index.83e7de91.js></script></body></html>
1 change: 1 addition & 0 deletions web/dist/css/chunk-7ff87093.4dff8bbb.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion web/dist/css/chunk-f1a651ee.0b6e80a4.css

This file was deleted.

2 changes: 1 addition & 1 deletion web/dist/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang=zh-CN><head><title>ZPan</title><meta charset=UTF-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel=icon href=data:image/ico;base64,aWNv><link href=/css/chunk-1029f285.6a417862.css rel=prefetch><link href=/css/chunk-141f1d87.09f4af54.css rel=prefetch><link href=/css/chunk-22dece4e.1d3af35b.css rel=prefetch><link href=/css/chunk-251a991a.95c79dda.css rel=prefetch><link href=/css/chunk-26cc1f8f.a0ccf9af.css rel=prefetch><link href=/css/chunk-45cef788.9856c3c5.css rel=prefetch><link href=/css/chunk-4fae512a.09f4af54.css rel=prefetch><link href=/css/chunk-51b64701.09f4af54.css rel=prefetch><link href=/css/chunk-54185f58.0568edce.css rel=prefetch><link href=/css/chunk-58993c8c.e2cd8101.css rel=prefetch><link href=/css/chunk-5ace7ddd.c4f9a7a6.css rel=prefetch><link href=/css/chunk-5c753fc6.0c7d8b3b.css rel=prefetch><link href=/css/chunk-5db82f0c.1d3af35b.css rel=prefetch><link href=/css/chunk-757d2a9b.94e0f332.css rel=prefetch><link href=/css/chunk-77b2d504.439841c9.css rel=prefetch><link href=/css/chunk-875b66d8.c4257cb3.css rel=prefetch><link href=/css/chunk-f1a651ee.0b6e80a4.css rel=prefetch><link href=/js/chunk-1029f285.3f3fb7ed.js rel=prefetch><link href=/js/chunk-141f1d87.134b4c95.js rel=prefetch><link href=/js/chunk-22dece4e.5b037940.js rel=prefetch><link href=/js/chunk-251a991a.30030b5a.js rel=prefetch><link href=/js/chunk-26cc1f8f.ed4f6bdb.js rel=prefetch><link href=/js/chunk-2d0a4fde.0ba1761d.js rel=prefetch><link href=/js/chunk-2d0afa39.2ab6564e.js rel=prefetch><link href=/js/chunk-2d0bce73.87296d37.js rel=prefetch><link href=/js/chunk-2d0c5700.ba4feafc.js rel=prefetch><link href=/js/chunk-2d0d76a6.1785011d.js rel=prefetch><link href=/js/chunk-2d0daeb3.3a4afe1c.js rel=prefetch><link href=/js/chunk-2d207759.da15c3c5.js rel=prefetch><link href=/js/chunk-45cef788.7430cf3d.js rel=prefetch><link href=/js/chunk-4fae512a.7ef597e7.js rel=prefetch><link href=/js/chunk-51b64701.7ce23bcb.js rel=prefetch><link href=/js/chunk-54185f58.9e7f71af.js rel=prefetch><link href=/js/chunk-58993c8c.9d07e0a5.js rel=prefetch><link href=/js/chunk-5ace7ddd.e6cd2799.js rel=prefetch><link href=/js/chunk-5c753fc6.38a032a2.js rel=prefetch><link href=/js/chunk-5db82f0c.3a606d0e.js rel=prefetch><link href=/js/chunk-757d2a9b.8947d41a.js rel=prefetch><link href=/js/chunk-77b2d504.5cdabfdb.js rel=prefetch><link href=/js/chunk-875b66d8.51e8ddad.js rel=prefetch><link href=/js/chunk-c39e5b9a.eca09651.js rel=prefetch><link href=/js/chunk-f1a651ee.66d88ddf.js rel=prefetch><link href=/css/chunk-common.fd380bbd.css rel=preload as=style><link href=/css/chunk-vendors.0ddd2d7b.css rel=preload as=style><link href=/js/chunk-common.c48b0ea6.js rel=preload as=script><link href=/js/chunk-vendors.24bcca13.js rel=preload as=script><link href=/js/index.e48787a1.js rel=preload as=script><link href=/css/chunk-vendors.0ddd2d7b.css rel=stylesheet><link href=/css/chunk-common.fd380bbd.css rel=stylesheet></head><body><div id=app></div><script src=/js/chunk-vendors.24bcca13.js></script><script src=/js/chunk-common.c48b0ea6.js></script><script src=/js/index.e48787a1.js></script></body></html>
<!DOCTYPE html><html lang=zh-CN><head><title>ZPan</title><meta charset=UTF-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel=icon href=data:image/ico;base64,aWNv><link href=/css/chunk-1029f285.6a417862.css rel=prefetch><link href=/css/chunk-141f1d87.09f4af54.css rel=prefetch><link href=/css/chunk-22dece4e.1d3af35b.css rel=prefetch><link href=/css/chunk-251a991a.95c79dda.css rel=prefetch><link href=/css/chunk-26cc1f8f.a0ccf9af.css rel=prefetch><link href=/css/chunk-45cef788.9856c3c5.css rel=prefetch><link href=/css/chunk-4fae512a.09f4af54.css rel=prefetch><link href=/css/chunk-51b64701.09f4af54.css rel=prefetch><link href=/css/chunk-54185f58.0568edce.css rel=prefetch><link href=/css/chunk-58993c8c.e2cd8101.css rel=prefetch><link href=/css/chunk-5ace7ddd.c4f9a7a6.css rel=prefetch><link href=/css/chunk-5c753fc6.0c7d8b3b.css rel=prefetch><link href=/css/chunk-5db82f0c.1d3af35b.css rel=prefetch><link href=/css/chunk-757d2a9b.94e0f332.css rel=prefetch><link href=/css/chunk-77b2d504.439841c9.css rel=prefetch><link href=/css/chunk-7ff87093.4dff8bbb.css rel=prefetch><link href=/css/chunk-875b66d8.c4257cb3.css rel=prefetch><link href=/js/chunk-1029f285.3f3fb7ed.js rel=prefetch><link href=/js/chunk-141f1d87.134b4c95.js rel=prefetch><link href=/js/chunk-22dece4e.5b037940.js rel=prefetch><link href=/js/chunk-251a991a.30030b5a.js rel=prefetch><link href=/js/chunk-26cc1f8f.ed4f6bdb.js rel=prefetch><link href=/js/chunk-2d0a4fde.0ba1761d.js rel=prefetch><link href=/js/chunk-2d0afa39.2ab6564e.js rel=prefetch><link href=/js/chunk-2d0bce73.87296d37.js rel=prefetch><link href=/js/chunk-2d0c5700.ba4feafc.js rel=prefetch><link href=/js/chunk-2d0d76a6.1785011d.js rel=prefetch><link href=/js/chunk-2d0daeb3.3a4afe1c.js rel=prefetch><link href=/js/chunk-2d207759.da15c3c5.js rel=prefetch><link href=/js/chunk-45cef788.7430cf3d.js rel=prefetch><link href=/js/chunk-4fae512a.7ef597e7.js rel=prefetch><link href=/js/chunk-51b64701.7ce23bcb.js rel=prefetch><link href=/js/chunk-54185f58.9e7f71af.js rel=prefetch><link href=/js/chunk-58993c8c.9d07e0a5.js rel=prefetch><link href=/js/chunk-5ace7ddd.e6cd2799.js rel=prefetch><link href=/js/chunk-5c753fc6.38a032a2.js rel=prefetch><link href=/js/chunk-5db82f0c.3a606d0e.js rel=prefetch><link href=/js/chunk-757d2a9b.8947d41a.js rel=prefetch><link href=/js/chunk-77b2d504.5cdabfdb.js rel=prefetch><link href=/js/chunk-7ff87093.3583f6a7.js rel=prefetch><link href=/js/chunk-875b66d8.51e8ddad.js rel=prefetch><link href=/js/chunk-c39e5b9a.eca09651.js rel=prefetch><link href=/css/chunk-common.fd380bbd.css rel=preload as=style><link href=/css/chunk-vendors.0ddd2d7b.css rel=preload as=style><link href=/js/chunk-common.a83d086e.js rel=preload as=script><link href=/js/chunk-vendors.24bcca13.js rel=preload as=script><link href=/js/index.83e7de91.js rel=preload as=script><link href=/css/chunk-vendors.0ddd2d7b.css rel=stylesheet><link href=/css/chunk-common.fd380bbd.css rel=stylesheet></head><body><div id=app></div><script src=/js/chunk-vendors.24bcca13.js></script><script src=/js/chunk-common.a83d086e.js></script><script src=/js/index.83e7de91.js></script></body></html>
Loading

0 comments on commit be1a744

Please sign in to comment.