Project

General

Profile

Possibility/Method to upload/store file/document by each projects folder?

Added by Raymond Shieh about 14 years ago

Does there have possibility or method to upload/store file/document by each projects folder?


Replies (7)

RE: Possibility/Method to upload/store file/document by each projects folder? - Added by Felix Schäfer about 14 years ago

I'm not sure what you mean by "project's folder", but I suppose you mean the repository? You can't upload files to the repository from redmine.

If you meant something else, please try to be more specific about what you are trying to achieve.

RE: Possibility/Method to upload/store file/document by each projects folder? - Added by Raymond Shieh about 14 years ago

Thanks for your quickly reply :)

Now, with redmine-0.8.7, files will be upload to folder: "redmine/files" and add date&time prefix like: 091218085838_ in front of filename.
For example: "091218085838_lalala.png".

My Purpose:
I want setting the "redmine/file" to other back-end storage and publish it via samba, ftp, nfs, http, https... with access control by project layer.

My problem:
All files and document were store in "redmine/files".

RE: Possibility/Method to upload/store file/document by each projects folder? - Added by Felix Schäfer about 14 years ago

Ah, now I understand. The files directory is for use by redmine only, so no luck there. There is no option to change the directory structure, and even if you were to share it somehow, you wouldn't be able to use the permissions from redmine to control the access and redmine wouldn't pick up new files in the directory.

I think your best bet here would be to set up repositories for your projects.

RE: Possibility/Method to upload/store file/document by each projects folder? - Added by Raymond Shieh about 14 years ago

Does there have any help/suggestion for hack source code to achieve that?

1. Create project's top-folder when project be created.
2. Upload/store file/document by each project's folder.
3. Support sub-folders in project's folder.
ex: files/project1/docs
/spec
/aaa
/bbb
/ccc
/project2/docs
/spec
/aaa
/ddd

How to set the access control to smaba/nfs/ftp/http/... via redmine's permission system is another topic.

RE: Possibility/Method to upload/store file/document by each projects folder? - Added by Vitaly Klimov about 14 years ago

Actually there is already a patch which allow you to configure storage path. See Patch #1511

I am using it with the latest Redmine revision and everything works great.

You may want to tweak these diffs to suit latest Redmine revision

RE: Possibility/Method to upload/store file/document by each projects folder? - Added by Raymond Shieh about 14 years ago

Thanks!
I have test patch #1511, and it works wonderful with redmine-0.8.7.

But, I am newbie in Ruby, ROR and Redmine.
Cloud you give me more advice to configure storage path by each project?

RE: Possibility/Method to upload/store file/document by each projects folder? - Added by Dan dan over 12 years ago

I need that redmine to upload files and documents to separate folder for each project, too.
Please was that open discussion clarified?
I need folder for each project in upload location because I want to let user to browse this location.
I tried DMSF plugin but no project folder created here , too.
How can I resolve this issue.
Thank you

    (1-7/7)