Skip to content

No server-side file size limit on uploads (v0) #313

Description

@lfrancke

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions