SAP Knowledge Base Article - Public

2447216 - MDF Attachment file extensions

Symptom

  • Unable to upload file on MDF object
  • Error: [XXXXXX] is not a valid attachment file name
  • File extension does not match the actual file content

Environment

SAP SuccessFactors HCM Suite

Cause

This is due to a system limitation related to file name or file type.

Resolution

Accepted file types are: doc, docx, pdf, txt, htm, ppt, pptx, xls, xlsx, gif, png, jpg, jpeg, html, rtf, bmp, msg.

If the error is not related to the file name the cause can be file type.

Security is a key aspect of Attachment Storage, and to ensure file integrity, the system enforces strict validation rules. One of these rules is that the file extension must match the actual file content. If there's a mismatch, the file will not be accepted for import.

To help identify potential mismatches you can check the MIME type of the files to verify if they align with their respective extensions, for example:

  • .docx files must have the MIME type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
  • .doc files must have the MIME type: application/msword

If the MIME type does not correspond to the file extension, this indicates a mismatch that must be corrected before import.

If you do not already have a MIME type detection tool, there are several reliable options available online that can help with this verification.

See Also

2257047 - Adding attachments on a MDF Object for attachment type field via Import

Keywords

MDF Attachments, File extensions, File suffix, Attachment, INC12056207 , KBA , LOD-SF-MDF , Metadata Framework , Product Enhancement

Product

SAP SuccessFactors HCM Suite all versions