Commit 647db323 authored by Andrew Newdigate's avatar Andrew Newdigate Committed by Stan Hu

Fix multipart error on rails reload

parent c7eeb7b1
...@@ -83,7 +83,7 @@ module Gitlab ...@@ -83,7 +83,7 @@ module Gitlab
def open_file(params, key) def open_file(params, key)
allowed_paths = [ allowed_paths = [
FileUploader.root, ::FileUploader.root,
Gitlab.config.uploads.storage_path, Gitlab.config.uploads.storage_path,
File.join(Rails.root, 'public/uploads/tmp') File.join(Rails.root, 'public/uploads/tmp')
] ]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment