Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

fix attachment copying on S3

ulfertsfe065001c986
diff --git a/app/uploaders/fog_file_uploader.rb b/app/uploaders/fog_file_uploader.rb
index 5d6fafc45f1..6655cb93acd 100644
--- a/app/uploaders/fog_file_uploader.rb
+++ b/app/uploaders/fog_file_uploader.rb
@@ -40,7 +40,7 @@ class FogFileUploader < CarrierWave::Uploader::Base
after :store, :delete_old_tmp_file
def copy_to(attachment)
- attachment.remote_file_url = remote_file.url
+ attachment.file = local_file
end
def store_dir