Repository navigation
Reuse stored metadata when finalizing native uploads - #14707
Conversation
Security rulesNo new WARNING or ERROR findings from security rules. 19 existing findings tracked in
|
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
|
Review complete. No blocking issues — approved ✅; 1 nitpick below. 🧹 Nitpicks (1) — 🟢 1 low
The change replaces scattered per-device metadata lookups (size, mime type, hash/etag) with one
One low-severity issue remains: S3 coerces a missing Reviewed commit: 48173b7 |
🟢 Tier S · Ready to merge
The pull request adds MIME type to storage Latest changes: The newest commit normalizes S3
📂 Walkthrough · 6
Reviewed the commits since |
Native file uploads fetch MIME type, signature and size through separate object-store metadata requests, including another size lookup after writing transformed bytes. On NYC Spaces each measured HEAD took about 29 ms.
Reuse one
FileInfosnapshot for upload finalization. Extend the existing optional metadata with MIME type, normalize optional S3 content types (missing/blank values remain null; parameters and whitespace are removed), retain legacy-device fallbacks, refresh the snapshot after stripping image metadata, and use the known transformed byte length after compression/encryption. Locks, permissions, transform order and stored representations stay intact.Validation:
Production deployments are paused. No Cloud dependency update, release or deployment is part of this PR. Separate files-sdk pagination work addresses the measured listing round trips.
Refs https://github.com/appwrite-labs/cloud/issues/6704