Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[HttpFoundation] remaining UploadedFile size deprecation notices #25466

Copy link
Copy link
Closed
@craue

Description

@craue
Issue body actions
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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.