anvc / scalar

Born-digital, open source, media-rich scholarly publishing that’s as easy as blogging.
Other
232 stars 73 forks source link

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

Open paulmer opened 1 year ago

paulmer commented 1 year ago

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.