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

Feature Request: Place uploads in separate directory by default #224

Open
paulmer opened this issue Oct 24, 2023 · 0 comments
Open

Feature Request: Place uploads in separate directory by default #224

paulmer opened this issue Oct 24, 2023 · 0 comments

Comments

@paulmer
Copy link
Contributor

paulmer commented Oct 24, 2023

Scalar offers simple configuration with .htaccess rules and localDir configuration to place user uploaded files in a subdirectory or other location, but by default creates user directories in the root of the Scalar site. As a matter of good practice, I suggest by default separating user uploads from application code by enabling these settings out-of-the-box. There's no functional benefit to placing the user files in the root directory.

Suggested changes:

  1. Set "localDir" in system/application/config/local_settings.php to "uploads".
  2. Uncomment the lines in .htaccess that route file requests to the uploads directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant