Project

General

Profile

Actions

Defect #18928

closed

Incorrect path to uploaded files in redmine 2.6.1

Added by Mad Geniy almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
-
Category:
Attachments
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

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

Has duplicate Redmine - Defect #18948: Corrct files directory, incorrect links to filesClosed

Actions
Actions #1

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 How to request help, and include as many details as you have).

Edit: r10990 for #5298, introduced in Redmine 2.3.0, might be notable.

Actions #2

Updated by Toshi MARUYAMA almost 10 years ago

  • Related to Defect #18948: Corrct files directory, incorrect links to files added
Actions #3

Updated by Toshi MARUYAMA almost 10 years ago

  • Related to deleted (Defect #18948: Corrct files directory, incorrect links to files)
Actions #4

Updated by Toshi MARUYAMA almost 10 years ago

  • Has duplicate Defect #18948: Corrct files directory, incorrect links to files added
Actions #5

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

Actions #6

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.

Actions #7

Updated by Toshi MARUYAMA almost 10 years ago

RedmineUpgrade

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.

Actions #8

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.

Actions #9

Updated by Toshi MARUYAMA almost 10 years ago

See #18948#note-5.

Please use Wrong links for attachments.
We cannot support individual environment.

Actions

Also available in: Atom PDF