Skip to content

Support ecodev/graphql-upload v8 #259

@andrew-demb

Description

@andrew-demb

There is a newly released major version of ecodev/graphql-upload - v8.0.0 https://github.com/Ecodev/graphql-upload/releases/tag/8.0.0

Release notes mention that UploadMiddleware is no longer presented in the library with no replacement and hint to implement PSR-15 middleware by ourselves in case of we need it (or to find an alternative library that provides a bridge between PSR-7 and ecodev/graphql-upload).

UploadMiddleware is currently used in GraphQLiteController.

// Let's parse the request and adapt it for file uploads.
if (class_exists(UploadMiddleware::class)) {
$uploadMiddleware = new UploadMiddleware();
$psr7Request = $uploadMiddleware->processRequest($psr7Request);
\assert($psr7Request instanceof ServerRequestInterface);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions