Replies: 2 comments 1 reply
-
是否能像MEGA的下载方式一样,下载到浏览器然后打包取回本地 不知道这个是否有帮助 https://www.zhangxinxu.com/wordpress/2019/08/js-zip-download |
Beta Was this translation helpful? Give feedback.
-
After reading the code, I found that the difficulty should be that how to get the recusive file download urls. To reuse SWR to get the recusive download urls, the useSWR React hook needs to be called multiple times in a loop with condition check, which violates React hook rules. |
Beta Was this translation helpful? Give feedback.
-
onedrive-vercel-index has preview support for many file formats, which encourages webmasters to serve the shared files in bulk other than in zip, making preview of the files possible.
However, onedrive API doesnot provide a way to download a folder or download files in batches. You actually can do them via onedrive share url, and onedrive just doesnot provide the api.
The fact makes visitors difficult to download the files stored (even hierarchically) in a folder.
To solve it and enhance the experience, I have come up with some solutions:
Currently I would support 1 & 2.
Beta Was this translation helpful? Give feedback.
All reactions