Addon by Erin Dalzell

Download Main Screenshot

Limit file downloading to logged in users or only allow one download per email

MIT Licensed

This package provides a way to allow logged in users to download private assets.


  • PHP 8.0+
  • Statamic v3.2+


You can install this package via composer using:

composer require edalzell/download

The package will automatically register itself.

NOTE: assets must be private (otherwise they are publicly accessible and can always be downloaded)


The {{ download }} tag produces a url that will only allow the file to be downloaded if the user is logged in.

If someone not logged in tries the link, there will be an error returned in the errors session key.


  • file (required) - name of the file
  • container (required) - container the file is in.