Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

Inject root path into GenericFileResponse #310

Closed
thecodejunkie opened this issue Sep 22, 2011 · 0 comments
Closed

Inject root path into GenericFileResponse #310

thecodejunkie opened this issue Sep 22, 2011 · 0 comments
Assignees
Milestone

Comments

@thecodejunkie
Copy link
Member

The filePath parameter that is passed into the ctor of the GenericFileResponse should be relative to the root of your application. This change injects the application root path into the GenericFileResponse at application start and it will be used to figure out where your files are located. The reason for this is to prevent the response for accidentally serving files that are outside your application folder

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant