middlewares / ideas

Need a Middleware or looking for ideas?
5 stars 0 forks source link

Extract files from non-POST request #24

Open oscarotero opened 6 years ago

oscarotero commented 6 years ago

Here's an article with a nice method to manage files in PUT, etc requests: https://blog.alejandrocelaya.com/2017/03/06/managing-put-requests-with-file-uploads-in-psr-7-and-middleware-php-applications/

Not sure if this can be used in the real world

ncou commented 6 years ago

Hi,

Looks like a nice middleware idear, why do you think it can't be used in real world ?

oscarotero commented 6 years ago

Hello.

If you read the "Considerations" section at the end of the article, there's some reasons of why this technique would be problematic.

But if you like the idea and want to work to implement this middleware, that would be great. Just create a new middleware package using this template and I'd happy to add the repo to the middlewares organization.