Actions
Feature #4493
closedMake destination folder for attachment uploads configurable
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Attachments
Target version:
-
Start date:
2009-12-28
Due date:
% Done:
0%
Estimated time:
Resolution:
Duplicate
Description
Would it be possible to change app/models/attachment.rb
in such a way, that the destination folder can be configured? Currently it is defined as
@@storage_path = "#{RAILS_ROOT}/files"
This would be reasonable in Redmine deployments where one uses jruby and Redmine created as a JavaWebArchive with a Java application-server like Apache Tomcat. In this case the destination folder for the attachment uploads is a subfolder under $CATALINA_HOME/webapps/redmine.war/WEB-INF/files
. The problem with this is that the uploaded files would disappear after deploying a new version of Redmine unless one copies the files to the #{RAILS_ROOT}/files
directory before creating the WAR file.
Related issues
Actions