src/Zf2FileUploader/View/Strategy/UploaderStrategy.php
public function selectRenderer(ViewEvent $e)
    {
        $model = $e->getModel();

        if (!$model instanceof UploaderModelInterface) {
            return null;
        }

        $this->renderer = $this->rendererFactory
                               ->createRenderer($e->getRequest()
                                                  ->getQuery());

        // JsonModel found
        return $this->renderer;
    }
public function selectRenderer(ViewEvent $e)
    {
        $model = $e->getModel();

        if (!$model instanceof UploaderModelInterface) {
            return null;
        }

        $this->renderer = $this->rendererFactory
                               ->createRenderer($e->getRequest()
                                                  ->getQuery());

        // JsonModel found
        return $this->renderer;
    }
Detect if we should use the UploaderRenderer based on model type and/or
Accept header

@param  ViewEvent $e
@return null | RendererInterface