Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better $_FILES support #167

Open
BenRutlandWeb opened this issue Oct 28, 2021 · 0 comments
Open

Better $_FILES support #167

BenRutlandWeb opened this issue Oct 28, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@BenRutlandWeb
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant