diff --git a/README.md b/README.md index 3c73926..ec5415f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ // LOGO OR BANNER GOES HERE ## Status -Currently still in development, but main features are already working as intended. +Currently still in development, ~~but main features are already working as intended.~~ Preview and download files are not working because of Vercel's limit for serverless function. Working on a workaround for this. + You can check the demo [here](https://drive.mbaharip.com). ## What is this? @@ -51,6 +52,10 @@ I know there are a lot of people selling cheap edu account for Google Drive and --- +## Known Issues +- Fetching files from Google Drive API take too much time, it triggers 504 Error on Vercel. +- Can't download big files, because of Vercel's 10MB limit for serverless function. + ## TODO - [x] Navigate through folders - [ ] File preview diff --git a/src/components/File/List.tsx b/src/components/File/List.tsx index 24dde51..59741fc 100644 --- a/src/components/File/List.tsx +++ b/src/components/File/List.tsx @@ -41,7 +41,13 @@ function CopyButton({ url, isFolder }: { url: string; isFolder: boolean }) { ); } -function DownloadButton({ fileId }: { fileId: string }) { +function DownloadButton({ + fileId, + fileName, +}: { + fileId: string; + fileName: string; +}) { return (