spencerwooo / onedrive-vercel-index

OneDrive public directory listing, powered by Vercel and Next.js
https://drive.swo.moe
MIT License
3.06k stars 3.6k forks source link

Proxied download doesn't work #248

Closed heddxh closed 2 years ago

heddxh commented 2 years ago

Screenshot_20220109-170758 And I tired the demo,same problem.

spencerwooo commented 2 years ago

ok i see the problem, the directLink option used in api.json is set to only allow onedrive direct links, if not specified, the proxy could be used to relay any random link what-so-ever. i see that you are using sharepoint, so you can set that option to something like https://nvzwjezr-my.sharepoint.com/.

the reason why the demo site is also not working is that i thought all direct links start with

https://public.dm.files.1drv.com

but today it suddenly starts with

https://public.bn.files.1drv.com

should be fixed some time later.

spencerwooo commented 2 years ago

onedrive international users should be able to use this directly, sharepoint users need to change the regex matching the url in directLinkRegex defined in api.json.

heddxh commented 2 years ago

resolved. Thx!