Symptom
When you try to upload an HTML file to a workflow rule, you get the below error message:
'The document you want to upload has the MIME type text/html. Documents with this MIME type are not allowed to be uploaded according to the settings made in your solution configuration.'
Environment
- SAP Hybris Cloud for Customer
- SAP Business ByDesign
Reproducing the Issue
- Go to the Application and User Management work center.
- Go to the Workflow Rules view.
- Select New.
- Input all mandatory information and navigate to Define Actions.
- Choose Rule Type as E-Mail.
- Select Browse to upload the relevant email template and select the html file.
Result: You get the message: 'The document you want to upload has the MIME type text/html. Documents with this MIME type are not allowed to be uploaded according to the settings made in your solution configuration.'
Cause
HTML document upload is not supported in the system by default.
Resolution
You need to scope the system to allow HTML files into your system by following scoping steps:
- Go to the Business Configuration work center.
- Select Implementation Projects view.
- Open the Activity List.
- Select the Fine-tune step.
- Choose to view All Activities.
- Find the Allowed Mime Types For Document Upload activity and open it.
- Set the MIME type code 10082, Text/HTML document, as allowed.
- Save and Close.
Keywords
html, text/html, MIME type, type code 10082 , KBA , SRD-CC , Cross Components , How To