diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-10-06 17:09:03 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-10-14 18:50:35 +0300 |
commit | 8f584d5f2c8dc036214a7fc71ce864fe23b4cb9e (patch) | |
tree | 77a0b55d3ef868b453808e00bcb4d624846af139 /app/uploaders/file_uploader.rb | |
parent | a2f0a3650b03fcca3c8ca428ca1d2173197b4d22 (diff) | |
download | gitlab-ce-8f584d5f2c8dc036214a7fc71ce864fe23b4cb9e.tar.gz |
Fix: Images cannot show when projects' path was changeduploads_path_fix
Diffstat (limited to 'app/uploaders/file_uploader.rb')
-rw-r--r-- | app/uploaders/file_uploader.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/uploaders/file_uploader.rb b/app/uploaders/file_uploader.rb index f9673abbfe8..e8211585834 100644 --- a/app/uploaders/file_uploader.rb +++ b/app/uploaders/file_uploader.rb @@ -26,7 +26,7 @@ class FileUploader < CarrierWave::Uploader::Base end def secure_url - File.join(Gitlab.config.gitlab.url, @project.path_with_namespace, "uploads", @secret, file.filename) + File.join("/uploads", @secret, file.filename) end def file_storage? |