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

Response function to help attach/download files in the Public directory #35

Closed
Badgerati opened this issue Jun 12, 2018 · 0 comments
Closed
Assignees
Milestone

Comments

@Badgerati
Copy link
Owner

Add a new helper response function to attach a file to the response that can be downloaded; files should come from the Public directory, much like normal content requests.

ie, doing the following in a route would start a download for the public/downloads/install.exe file:

route get '/installer' {
    param($s)
    attach 'downloads/install.exe'
}
@Badgerati Badgerati added this to the 0.12.0 milestone Jun 12, 2018
@Badgerati Badgerati self-assigned this Jun 12, 2018
Badgerati added a commit that referenced this issue Jun 13, 2018
Resolves #35: Function to attach files to response for downloading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant