You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The root folder ID needs to be obtained manually. Open browser developer tools, visit [Doubao Drive](https://www.doubao.com/drive/), log in to your account, open the `Network` tab, search for `homepage`, switch to the `Preview` tab, where `root_id` is the root folder ID.
Do not use 302 if the storage is public accessible.
29
+
Otherwise, the download link may leak sensitive information such as access token or signature.
30
+
Others may use the leaked link to **access all your files**.
31
+
32
+
:::
33
+
::: zh-CN
34
+
::: danger 安全风险
35
+
36
+
若存储可公开访问,则请勿使用302重定向。
37
+
否则,下载链接可能泄露访问令牌、签名等敏感信息。
38
+
他人可利用泄露的链接**访问你所有的文件**。
30
39
31
40
:::
32
41
42
+
## Root folder ID { lang="en" }
43
+
33
44
## 根文件夹ID { lang="zh-CN" }
34
45
46
+
::: en
47
+
The root folder ID is the parameter value displayed in the address bar when accessing Doubao Drive via a web page. For example, after accessing [Doubao Drive](https://www.doubao.com/chat/drive/), the address bar shows `https://www.doubao.com/chat/drive/AAAAAAAAAAAAAAAAAAAAAAAAAA?tab=myUpload`, where `AAAAAAAAAAAAAAAAAAAAAAAAAA` is the root folder ID.
Required. Web cookie. Used to refresh token and extract Authorization/DPoP tokens.
47
64
48
-
Open browser developer tools, visit [Doubao Drive](https://www.doubao.com/drive/), log in to your account, check the `Network` tab, search for `homepage` and open it, find `Cookie` in the `Header`, copy the `sid_guard` value and fill it in (note: please copy all the way to the end including +GMT).
65
+
Open browser developer tools, visit [Doubao Drive](https://www.doubao.com/drive/), log in to your account, check the `Network` tab, search for `biz_auth` and open it, find `Cookie` in the `Header`, copy the complete value and fill it in.
Optional, for Token refresh. Please obtain it yourself, and refer to the actual value.
109
+
:::
110
+
111
+
::: zh-CN
112
+
可选,用于刷新 Token。请自行获取,以实际为准。
113
+
:::
114
+
115
+
## Share Link { lang="en" }
116
+
117
+
## 分享链接 { lang="zh-CN" }
118
+
119
+
::: en
120
+
Whether to use share link for download. If enabled, OpenList will create share and request with anonymous user's token to create download link. This can reduce authorization leak.
121
+
122
+
Please ensure you have filled all authentication options above before enabling this function.
0 commit comments