File: src/routes/(app)/storage/api/upload/+server.ts
The upload endpoint imposes no maximum file size. S3's 5 TB single-object limit applies as a natural backstop. For v0 this is acceptable; large uploads will consume server-side streaming resources proportionally but do not buffer the body in memory (the stream is piped directly to the @aws-sdk/lib-storage Upload). Add a configurable MAX_UPLOAD_BYTES guard in a future iteration once typical object sizes are known.
File: src/routes/(app)/storage/api/upload/+server.ts
The upload endpoint imposes no maximum file size. S3's 5 TB single-object limit applies as a natural backstop. For v0 this is acceptable; large uploads will consume server-side streaming resources proportionally but do not buffer the body in memory (the stream is piped directly to the @aws-sdk/lib-storage Upload). Add a configurable MAX_UPLOAD_BYTES guard in a future iteration once typical object sizes are known.