handle attahcment with send_file
This commit is contained in:
parent
ab0cfc0036
commit
a699ebdbcc
5 changed files with 19 additions and 2 deletions
|
@ -45,6 +45,11 @@ Gitlab::Application.routes.draw do
|
|||
root to: "projects#index"
|
||||
end
|
||||
|
||||
#
|
||||
# Attachments serving
|
||||
#
|
||||
get 'files/:type/:id/:filename' => 'files#download', constraints: { id: /\d+/, type: /[a-z]+/, filename: /[a-zA-Z.0-9_\-\+]+/ }
|
||||
|
||||
#
|
||||
# Admin Area
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue