Conversation
feat: archive optimizer
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 73d8438363
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| await upsertFile({ | ||
| link, | ||
| file: mutatedFile, | ||
| fileName: mutatedFile.name, | ||
| contentType: mutatedFile.type, | ||
| }) |
There was a problem hiding this comment.
Use resumable uploads for remote book replacements
When uploadToDataSource is true this sends the full rewritten archive to the provider upsert path, but the new Google/Dropbox/OneDrive implementations all use single-request upload endpoints (uploadType=media, Dropbox /2/files/upload, and Graph PUT .../content). Those endpoints are only intended for small files (Drive ≤5 MB, Dropbox <150 MB, Graph ≤250 MB), so normal CBZ/EPUB files above those sizes will fail instead of being uploaded; gate the button by file size or use resumable/session uploads.
Useful? React with 👍 / 👎.
No description provided.