Project

General

Profile

Actions

Defect #18928

closed

Incorrect path to uploaded files in redmine 2.6.1

Defect #18928: Incorrect path to uploaded files in redmine 2.6.1

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

Status:
Closed
Priority:
Urgent
Assignee:
-
Category:
Attachments
Target version:
-
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 1 (0 open — 1 closed)

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

Updated by Mischa The Evil almost 12 years ago Actions #1

  • 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.

Updated by Toshi MARUYAMA almost 12 years ago Actions #2

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

Updated by Toshi MARUYAMA almost 12 years ago Actions #3

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

Updated by Toshi MARUYAMA almost 12 years ago Actions #4

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

Updated by Toshi MARUYAMA almost 12 years ago Actions #5

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 12 years ago Actions #6

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 12 years ago Actions #7

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.

Updated by Mad Geniy almost 12 years ago Actions #8

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 12 years ago Actions #9

See #18948#note-5.

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

Actions

Also available in: PDF Atom