[#40112] Can't upload BCF files as normal attachments to work packages via FOG

https://community.openproject.org/work_packages/40112
pull/9895/head
Wieland Lindenthal 3 years ago
parent b3b08bf286
commit b4cde19cb9
No known key found for this signature in database
GPG Key ID: 7ACCABE64832A0C6
  1. 6
      modules/bim/lib/open_project/bim/patches/fog_file_uploader_patch.rb

@ -7,9 +7,9 @@ module OpenProject::Bim::Patches::FogFileUploaderPatch
def fog_attributes
return super unless path.ends_with?(".bcf")
{
"Content-Type" => "application/octet-stream"
}
super.merge({
"Content-Type" => "application/octet-stream"
})
end
end
end

Loading…
Cancel
Save