Project

General

Profile

Actions

Feature #4493

closed

Make destination folder for attachment uploads configurable

Added by Drazen Baic almost 15 years ago. Updated over 12 years ago.

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

Is duplicate of Redmine - Feature #1236: Make destination folder for attachment uploads configurableClosed2008-05-14

Actions
Has duplicate Redmine - Feature #2231: Ability to specify where files are stored on the filesystemClosed2008-11-26

Actions
Actions

Also available in: Atom PDF