diff --git a/lib/storage/image-download-preparation.ts b/lib/storage/image-download-preparation.ts index 716d29b45..af049357e 100644 --- a/lib/storage/image-download-preparation.ts +++ b/lib/storage/image-download-preparation.ts @@ -38,7 +38,7 @@ export async function prepareImageArchiveDownload(id: string) { phase = "store"; const url = source.buffer.equals(asset.bytes) && asset.contentType === "image/png" ? task.targetUrl - : (await uploadFile(`canvas-download-${randomUUID()}.${asset.filename.split(".").pop() || "png"}`, Uint8Array.from(asset.bytes).buffer)).url; + : (await uploadFile(`canvas-download-${randomUUID()}.${asset.filename.split(".").pop() || "png"}`, Uint8Array.from(asset.bytes).buffer, { preferQiniuForm: true })).url; await saveImageDownloadAsset(id, { status: "ready", url, bytes: asset.bytes.length, contentType: asset.contentType, preparedAt: new Date().toISOString() }); await cacheImageBytes(`source::${url}`, { buffer: asset.bytes, contentType: asset.contentType });