Skip to content

feat(FileUploader): Add custom per-uploader file size limit #51

@usernane

Description

@usernane

Problem Statement

FileUploader reads upload_max_filesize from PHP config but doesn't let you set a custom per-uploader size limit. Applications often need different size limits for different upload contexts (e.g., avatar images vs document uploads).

Proposed Solution

Add setMaxFileSize(int $sizeInBytes) and getMaxFileSizeLimit() methods. During upload, reject files exceeding the custom limit with a descriptive error.

Alternatives Considered

  • Only relying on PHP's ini setting (insufficient for per-context limits)

Breaking Change

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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