# Bug BIM-31 - Can't upload BCF files as normal attachments to work packages via FOG

Project: Stream BIM
Status: closed
URL: https://community.openproject.org/work_packages/BIM-31

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.0.2 |
| Observed in versions | 12.0.0 |
| Bug found in version (deprecated) | 12.0.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

The BIM module currently patches the `FogFileUploader` and overwrites all `fog_attributes`. It should not do that but instead simply `merge` those attributes that it needs to.

### **Environment**:

Your OpenProject Version: 12.0

On a installation configured to use FOG (i.e. when saving attachments to AWS S3)

### **Steps to reproduce:**

1.  Go to a work package
2.  Upload a .bcf file (if you don't have a BCF file simply rename a .zip file to .bcf then upload that)

### **Actual Behavior**

An error message appears. Upload isn't successfull. Ghost attachment entries are in the OP DB. 

### **Expected Behavior**

Upload is successful
