Skip to content

Maximum 10MB single file batch upload #2313

@g-radam

Description

@g-radam

Bug Description

Attempting to upload a single 20MB via the Control Plane does not upload the whole file / the dialog doesn't close.

Log dump:

hermes-hindsight  | Request body exceeded 10MB for /api/files/retain. Only the first 10MB will be available unless configured. See https://nextjs.org/docs/app/api-reference/config/next-config-js/middlewareClientMaxBodySize for more details.
hermes-hindsight  | Error uploading files: TypeError: Failed to parse body as FormData.
hermes-hindsight  |     at async w (.next/server/chunks/[root-of-the-server]__1yzek0o._.js:1:1320)
hermes-hindsight  |     at async l (.next/server/chunks/[root-of-the-server]__1yzek0o._.js:1:5645)

The logs would indicate that Next.js is truncating the body to 10MB.

Steps to Reproduce

Control Plane -> Add Document -> Upload Files -> Drag & Drop 1x 20MB file -> Click submit -> No UI change

Expected Behavior

Dialog closes, file is retained in the background.

Actual Behavior

Logs indicate that only the first 10MB of data is accepted.

Version

0.8.2

LLM Provider

Other

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions