Merge pull request #8751 from opf/fix/bcf-export-file-extension
Fix/bcf export file extensionpull/8775/head
commit
129e6385fd
@ -0,0 +1,15 @@ |
||||
module OpenProject::Bim::Patches::FogFileUploaderPatch |
||||
def self.included(base) # :nodoc: |
||||
base.prepend InstanceMethods |
||||
end |
||||
|
||||
module InstanceMethods |
||||
def fog_attributes |
||||
return super unless path.ends_with?(".bcf") |
||||
|
||||
{ |
||||
"Content-Type" => "application/octet-stream" |
||||
} |
||||
end |
||||
end |
||||
end |
Loading…
Reference in new issue