Commit 33edee2
committed
fix(139): declare the PC client type to lift the 50 GB upload cap
The third field of X-Yun-Client-Info is the client type, and the server
uses it to pick the single-file upload limit that comes with the account's
membership: 50 GB for 9 (web) and 2 (app), 500 GB for 13 (the desktop
client). The driver sent 9, so personal_new uploads were rejected with
"权益不足" above 50 GB even on accounts that pay for the larger limit.
Measured against the live API by declaring a size through /file/create
without transferring anything: with 9 the boundary sits exactly at 50 GB,
with 13 it moves to exactly 500 GB. Only this field matters. The platform
string, the version, the device fingerprint, X-Yun-App-Channel and
X-Yun-Svc-Type all leave the boundary where it is.1 parent 8d77000 commit 33edee2
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
600 | | - | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
601 | 603 | | |
602 | 604 | | |
603 | 605 | | |
| |||
0 commit comments