Skip to content
This repository has been archived by the owner on Jan 1, 2022. It is now read-only.

当文件名中存在#时,将无法在线预览也无法下载 #97

Open
kumiko-desu opened this issue Feb 6, 2021 · 4 comments
Open
Labels
bug Something isn't working todo Feature to be implemented

Comments

@kumiko-desu
Copy link

kumiko-desu commented Feb 6, 2021

当访问文件链接时返回的错误信息:
{"code":"itemNotFound","message":"Item does not exist","innerError":{"date":"2021-02-06T15:03:54","request-id":"04129404-16cb-4224-8ae0-1ee233973707","client-request-id":"04129404-16cb-4224-8ae0-1ee233973707"}}
因为带#号的文件有点多,修改文件名过于繁琐,无能为力,所以来求助一下。

@kumiko-desu kumiko-desu changed the title 当MP4文件名中存在#时,出现 当文件名中存在#时,将无法在线预览也无法下载 Feb 6, 2021
@kumiko-desu kumiko-desu reopened this Feb 6, 2021
@spencerwooo spencerwooo added bug Something isn't working todo Feature to be implemented labels Feb 6, 2021
@beetcb
Copy link
Contributor

beetcb commented Feb 7, 2021

因为带 # 的路径在构建 URL 实体的时候会划分为 hash 而不是 pathname:

const { pathname, searchParams } = new URL(request.url)

如果加上 hash,要是 readme 中标题有个 hash 的话,复制 url 访问又会报错 😂 @spencerwooo

@tkfanswind
Copy link

咋解决的呢?

@kumiko-desu
Copy link
Author

@tkfanswind 还未修复,等作者有时间吧。有一个临时的解决办法,手动在地址栏把#换成%23

@aozaki-kuro
Copy link

我这里也遇到了同样的问题。
由于存储、分享的内容原因这个影响有点大,希望作者有时间的时候可以修复,谢谢🙏

0wQ added a commit to 0wQ/onedrive-cf-index that referenced this issue Jul 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working todo Feature to be implemented
Projects
None yet
Development

No branches or pull requests

5 participants