Changelog - 2026-09-07
Presigned URLs and object tagging on IStorageHelper
New FeatureIn one line. Ask for a presigned upload URL and tag the object once it lands, without a hand-written S3 class.
typescript
const putUrl = await storage.presignPut({ bucket: 'imports', name: 'q1-workbook.csv' });
// hand putUrl to the browser - it uploads straight to S3, never through this backend
await storage.replaceObjectTags({
bucket: 'imports',
name: 'q1-workbook.csv',
tags: { temp: 'true', total_rows: '48210' },
});What changed
presignPut(opts). Returns a time-limited PUT URL.expiresInSecondsdefaults to 600. A content type on a presigned PUT is never sent to S3, so there is no such option.presignGet(opts). Returns a time-limited GET URL.expiresInSecondsdefaults to 60.responseContentTypeis forwarded as the download'sContent-Type.getObjectTags(opts). Returns an object's tags as a plainRecord<string, string>. A missing object returns{}; any other failure throws.replaceObjectTags(opts). Replaces the object's tags.StoragePresignDefaults. New const class withPUT_EXPIRES_IN_SECONDS(600) andGET_EXPIRES_IN_SECONDS(60).- Backends.
MinioHelperandBunS3Helperimplement all four. A backend with no transport for them, such asDiskHelper, throws with a message naming the class and the method instead of returning a fake result.
Who is affected
- Applications that hand-rolled presigned URLs or S3 tagging. Switch to the four methods and delete the custom class.
- Everyone else. No action needed - the methods are additive.