Update version to 0.19.0 and enhance file upload functionality#69
Update version to 0.19.0 and enhance file upload functionality#69parashardhapola merged 4 commits intomasterfrom
Conversation
parashardhapola
commented
Mar 7, 2026
- Bump package version to 0.19.0.
- Increase maximum workers for file uploads from 4 to 6.
- Introduce support for uploading chunks to presigned URLs, including progress reporting and error handling.
- Bump package version to 0.19.0. - Increase maximum workers for file uploads from 4 to 6. - Introduce support for uploading chunks to presigned URLs, including progress reporting and error handling. - Refactor upload logic to accommodate both presigned URL and server uploads, improving overall upload reliability.
Review Summary by QodoAdd R2 presigned URL upload support and increase worker threads
WalkthroughsDescription• Bump package version to 0.19.0 • Increase max workers for uploads from 4 to 6 • Add support for uploading chunks to presigned URLs • Refactor upload logic to support both R2 and server uploads • Implement progress reporting and error handling for R2 uploads Diagramflowchart LR
A["Upload Request"] --> B{"Use R2?"}
B -->|Yes| C["Get Presigned URLs"]
B -->|No| D["Server Upload"]
C --> E["Upload Chunks to R2"]
D --> F["Upload Chunks to Server"]
E --> G["Collect ETags"]
F --> H["Complete Upload"]
G --> I["Complete with Parts"]
I --> J["Return Response"]
H --> J
File Changes1. cytetype/__init__.py
|
Code Review by Qodo
1.
|
- Added a check to ensure the number of presigned URLs matches the expected chunk count, raising a ValueError if there is a discrepancy. This enhancement improves error handling and ensures consistency in the file upload process.
- Updated the response handling in the HTTPTransport class to raise a NetworkError if the ETag header is missing after a successful presigned URL PUT request. This change improves error reporting and ensures that clients are informed of potential issues with the upload response.
- Added APIError exception handling for client-side errors (HTTP 400-499) during presigned URL uploads. This improvement provides clearer feedback when uploads are rejected, enhancing the robustness of the upload process.