eZ Platform bundle that gives the ability to specify content dispositions for downloads.

v2.0.2 2020-04-21 15:46 UTC

This package is not auto-updated.

Last update: 2020-08-11 21:30:21 UTC


This bundle gives the ability to customize content dispositions (inline or attachment) for downloads.

You can specify the default content disposition, and content dispositions per mime type.


  • Run composer require:
$ composer require contextualcode/ezplatform-content-disposition-bundle
  • Enable this bundle in config/bundles.php by adding this line:
    return [
        ContextualCode\EzPlatformContentDispositionBundle\ContextualCodeEzPlatformContentDispositionBundle::class => ['all' => true],


In some parameters block, for example in config/services.yaml, you can specify:

  • A default content disposition: inline
  • A content disposition per mimetype:
      "application/pdf": inline
      "application/msword": attachment