Defect #18928
closedIncorrect path to uploaded files in redmine 2.6.1
0%
Description
I use 2.6.1 version of redmine, upgreaded from 1.2.x and with database imported from bitnami redmine stack.
What wrong?
All links in my redmine like "redmine/attachments/XX/xxx.xx".
But uplodaded files are in "redmine/files/xxxx/xx/xxx.xx"
How I can correct it?
Related issues
Updated by Mischa The Evil almost 10 years ago
- Status changed from New to Closed
- Resolution set to Invalid
Please use the forums for support requests (and make sure you've read Submissions and , and include as many details as you have).
Edit: r10990 for #5298, introduced in Redmine 2.3.0, might be notable.
Updated by Toshi MARUYAMA almost 10 years ago
- Related to Defect #18948: Corrct files directory, incorrect links to files added
Updated by Toshi MARUYAMA almost 10 years ago
- Related to deleted (Defect #18948: Corrct files directory, incorrect links to files)
Updated by Toshi MARUYAMA almost 10 years ago
- Has duplicate Defect #18948: Corrct files directory, incorrect links to files added
Updated by Toshi MARUYAMA almost 10 years ago
Mad Geniy wrote:
All links in my redmine like "redmine/attachments/XX/xxx.xx".
But uplodaded files are in "redmine/files/xxxx/xx/xxx.xx"
It is design.
source:tags/2.6.1/app/models/attachment.rb#L323
Updated by Mad Geniy almost 10 years ago
But I can't download it. Strange behavior, because uploaded file have to be downloaded. Isn't it? How I can resolve it? I don't know RoR.
Updated by Toshi MARUYAMA almost 10 years ago
All file uploads are stored to the files/ directory. You can copy the contents of this directory to another location to easily back it up.
Updated by Mad Geniy almost 10 years ago
My situation:
I uploaded file, for example, "some_file.png" to Wiki page. Then, I wrote some text and use this file:
my some super text illustarted with image !some_file.png!
After uploding file, Redmine puts it into /files directory.
But after saving my WikiPage, "some_file.png" has a link at /attachments file and I can't see image, only link to file "some_file.png", and if I click on it, I get 404 error, because no files in /attachments directory.
Real example:
I have file in
../redmine/files/2015/01/150121205344_a406c999df9d9de8ec63e11bed0c69b4.jpg
but link to this file in web interface of Redmine is
http://tasks.spbdk.ru/attachments/download/20/%D0%91%D1%8D%D0%BA%D0%B0%D0%BF.jpg
I can't understand why and how to fix it. Please, help me.
Updated by Toshi MARUYAMA almost 10 years ago
See #18948#note-5.
Please use
We cannot support individual environment.