[APP-2044] Gate image blob size increase (#10178)

This commit is contained in:
Eric Bailey
2026-04-09 14:06:25 -05:00
committed by GitHub
parent c42940b0ad
commit cfeac097e1
4 changed files with 9 additions and 1 deletions
+2
View File
@@ -53,6 +53,7 @@ interface PostOpts {
type FeatureFlags = {
highResolutionImages?: boolean
increasedBlobSizeLimit?: boolean
}
export async function post(
@@ -320,6 +321,7 @@ async function resolveMedia(
logger.debug(`Compressing image #${i}`)
const {path, width, height, mime} = await compressImage(image, {
highResolution: featureFlags?.highResolutionImages,
increasedBlobSizeLimit: featureFlags?.increasedBlobSizeLimit,
})
logger.debug(`Uploading image #${i}`)
const res = await uploadBlob(agent, path, mime)