Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serve static files #345

Open
4 of 5 tasks
johanjanssens opened this issue May 16, 2020 · 0 comments · May be fixed by #346
Open
4 of 5 tasks

Serve static files #345

johanjanssens opened this issue May 16, 2020 · 0 comments · May be fixed by #346
Assignees
Labels

Comments

@johanjanssens
Copy link
Member

johanjanssens commented May 16, 2020

Implement the ability to route and serve static files (images, documents, videos etc.) from the filesystem

Todo

Notes

  • Investigate if it's possible to add drop-in support for Flysystem
@johanjanssens johanjanssens self-assigned this May 16, 2020
johanjanssens added a commit that referenced this issue May 16, 2020
A file route is absolute if the path of the route is a fully qualified file path
johanjanssens added a commit that referenced this issue May 16, 2020
Add support for the 'force-download' query parameter. If specified the
file will be downloaded instead of allowing the browser to preview the
file if it can do so.

For example:

'files/[:name]' => '/files/documents/[:name].pdf?force-download'
johanjanssens added a commit that referenced this issue May 17, 2020
The `transport`query parameter allows to define which transport. At the
moment two additional transports are supported: `stream` and `sendfile
johanjanssens added a commit that referenced this issue May 18, 2020
cache query parameter

The cache query parameter allows to define the max-age in
seconds.
@johanjanssens johanjanssens linked a pull request Jun 28, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant