Node.js Large Generated Image Uploads with Multipart Object Storage — Audit Explained A solo SaaS developer outlined a pattern for handling large AI-generated image and receipt uploads in Node.js by treating the original object as an audit record and using multipart object storage as the transport. The approach creates a server-owned upload session with a tenant-tied object key before issuing presigned part URLs, persists upload state in the database, verifies final object size via head() before marking the receipt immutable, and makes completion and abort explicit transitions. Short answer: treat the original receipt as an audit record first, then choose multipart upload as the transport. Keep upload state in your database, keep the object immutable after completion, and make completion and abort explicit transitions. I run a one-person SaaS, so I measure infrastructure in revenue per hour. The useful question isn't “can this upload finish?” It's “can I explain exactly what happened to this receipt six months later?” Ship weekly. Outsource the undifferentiated transfer work, but keep the evidence boundary visible in code. An AI-generated image, scanner capture, or phone photo can all become a receipt original. The bytes need one stable object key tied to a tenant and receipt identifier. The database record should also hold who started the upload, the expected byte count, a content-type allowlist decision, and a retention deadline. A client filename is display data, not identity. This ordering changes the implementation. Create a server-owned session before handing out any presigned URL. Store the upload ID and expiry before the client sends a part. If the process crashes, a worker can still find the session and decide whether to resume, complete, or abort it. There is no mystery “maybe the request committed” state hidden inside a web handler. The original object gets a write-once policy in the application, even when the storage service technically permits replacement. A review image can be derived later under a different key. That separation makes an audit export deterministic: original bytes, digest, and event history travel together. The following adapter names are deliberately generic. A concrete S3-compatible client supplies the multipart primitives; the application owns authorization, persistence, and the state machine around them. type Part = { number: number; etag: string }; type UploadSession = { id: string; objectKey: string; expiresAt: number }; interface StorageAdapter { createMultipart key: string, contentType: string : Promise<{ uploadId: string } ; presignPart key: string, uploadId: string, partNumber: number, ttlSeconds: number : Promise