Skip to content

[HttpFoundation] remaining UploadedFile size deprecation notices #25466

@craue

Description

@craue
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 4.1

After #25324, using file form fields (via Symfony\Component\DomCrawler\Field\FileFormField::upload() for testing) still triggers deprecation notices like Passing a size in the constructor is deprecated since 4.1 and will be removed in 5.0. Use getSize() instead, e.g. from

$file = new UploadedFile($file['tmp_name'], $file['name'], $file['type'], $file['size'], $file['error']);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions