Skip to content

FOLLOW-UP: Make MaxFileSize configurable via generator flag #271

@adnaan

Description

@adnaan

Context

This follow-up task was identified during the review of PR #267.

Source PR: #267
PR Title: feat: add file upload & storage support (Roadmap 2.2)
Suggested by: @claude[bot]

Task Description

The MaxFileSize in the generated WithUpload config is hardcoded to 10 << 20 (10 MB). This will be wrong for many use cases (e.g., video uploads need more, avatar thumbnails need less).

Options:

  • Add a --max-file-size flag to lvt gen resource
  • Make it a named constant at the top of the generated handler
  • Allow per-field size limits in the field spec (e.g., photo:image:5mb)

The simplest approach is a generator flag that sets the value for all file fields in that resource.


This issue was automatically created by prmonitor from PR review comments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    follow-upFollow-up task from PR reviewfrom-reviewIssue originated from PR review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions