8000 [Form] Having post_max_size as "8M" fails all form with length bigger then 8 bytes · Issue #7480 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Form] Having post_max_size as "8M" fails all form with length bigger then 8 bytes #7480
Closed
@feedmeastraycat

Description

@feedmeastraycat

It seems like the the latest merge on forms have an error in its regexp.

The function getNormalizedIniPostMaxSize() returns "8M" but if I do a print_r() on $match after the regexp it returns this:
Array ( [0] => 8M [1] => [2] => 8M [3] => )

Which causes the return code to do 8 * 1 instead of 8 * 10.

So my form post is 92 bytes and I get "The uploaded file was too large. Please try to upload a smaller file." (from here) Because it compares 92 bytes to 8 bytes instead of 8 MB.

Edit: The old code works.

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

      0