Commit Graph
5 Commits
Author SHA1 Message Date
xixu-me 651a7a03ea Refactor Worker to support resumable Google Drive uploads
Rewrites the Cloudflare Worker to handle Telegram file uploads to Google Drive using the resumable upload API for large files. Adds detailed error handling, progress tracking, and modularizes authentication and upload logic. Removes legacy code for multipart uploads and streamlines the file handling process.
2025-07-04 13:13:21 +08:00
xixu-me eac9e037e2 Refactor upload logic and remove upload tests
Refactored file upload logic to pass file size directly and streamline handling of large files with a new resumableUpload function. Removed the upload.test.js file.
2025-07-04 13:02:24 +08:00
xixu-me cb5b329a5b Refactor upload logic and add upload tests
Refactored file upload logic to Google Drive by separating small and large file handling, improving resumable upload with chunking and progress updates. Added unit tests for upload logic, including file size checks and chunking behavior.
2025-07-03 22:49:57 +08:00
xixu-me 3d4a352f63 Add resumable upload for large files to Google Drive
Enhanced the uploadToDrive function to support resumable uploads for files larger than 20MB, improving reliability for large file transfers. Also updated wrangler.jsonc to enable smart placement and cleaned up configuration comments.
2025-07-03 22:34:00 +08:00
xixu-me b712232b5e Initial commit (by create-cloudflare CLI)
Details:
  C3 = create-cloudflare@2.50.2
  project name = gdrive-upload-robot
  package manager = npm@11.2.0
  wrangler = wrangler@4.22.0
  git = 2.45.2.windows.1
2025-07-03 22:00:11 +08:00