Symptom
When downloading email interaction attachments using the preview option, the file extension for PDF files is missing.
Environment
SAP Cloud for Customer core applications
Reproducing the Issue
- Navigate to the Service work center.
- Open the Tickets view.
- Open any ticket.
- Go to the Interactions facet.
- Click on New.
- Click on the Add Attachments icon and upload any PDF file.
- Click the Preview icon for the attachment.
- Use the Download option.
→ You will notice that the downloaded file lacks the .pdf extension.
Cause
This issue occurs due to incorrect MIME type configuration maintained in the system.
Path to check configuration:
Business Configuration Work Center → Overview → Search for "MIME" → Click on the hyperlink "Allowed MIME Types for Document Upload".
In this configuration:
- The .pdf file extension should be associated with the application/pdf MIME type.
- However, it is currently also associated with application/octet-stream.
- When multiple MIME types are configured for the same file extension, the system defaults to application/octet-stream, which results in the file being downloaded without a .pdf extension.
Resolution
To resolve the issue:
- Remove the .pdf file extension from the application/octet-stream MIME type.
- This ensures the system uses the application/pdf MIME type for PDF files.
- After this correction, downloading PDF attachments from the email interaction preview will retain the proper .pdf extension and display correctly.
Keywords
PDF file extension, Attachment Preview, Download attachments, Missing file extension, Email interaction, MIME type configuration, File type mismatch , KBA , LOD-CRM-SRP-INT , Ticket Interactions , Problem
SAP Knowledge Base Article - Public