Skip to content

Better $_FILES support #167

Description

@BenRutlandWeb

Is your feature request related to a problem? Please describe.
The Request object doesn't handle files gracefully

Describe the solution you'd like
A nice API to handle file uploads

Describe alternatives you've considered
Using the $_FILES array

Additional context
The WP_REST_Request has a get_file_params method and set_file_params method, but these don't format the files into a nice consistent array. Laravel/Symfony map files into a File or UploadedFile object which would allow for some cool fluent APIs to be performed such as store and storeAs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions