Skip to content

Upload validator should be able to handle array of arrays returned by ServerRequestInterface::getUploadedFiles #159

@InvisibleSmiley

Description

@InvisibleSmiley

Feature Request

Q A
New Feature yes
RFC no
BC Break no

Summary

Currently (I guess since version 2.11.0), the Upload validator can accept an array of UploadedFileInterface instances, but not an array of arrays of UploadedFileInterface instances. The latter is returned by ServerRequestInterface::getUploadedFiles if "array-indicating" file identifiers are used as multipart form parameter names (e.g. "file[]").

Note that the two variants can probably appear in a mixed fashion, i.e. the array returned by ServerRequestInterface::getUploadedFiles would contain both UploadedFileInterface instances and arrays of UploadedFileInterface instances.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions