You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
}
The text was updated successfully, but these errors were encountered:
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 thepublic/downloads/install.exe
file:The text was updated successfully, but these errors were encountered: