SAP Knowledge Base Article - Public

3110872 - Error while uploading attachment. File is either corrupted or file format not supported for upload.

Symptom

Upon trying to upload the attachment for the document XYZ, system throws the error:

Error while uploading attachment. File is either corrupted or file format not supported for upload. 

(where XYZ represents the Document ID)

Environment

SAP S/4HANA Cloud

Reproducing the Issue

  1. Go to the app (for example Manage Customer Master Data)
  2. Find and Open the document XYZ (for example Customer ID)
  3. Select Edit
  4. Go to the tab Attachments
  5. Select the button Upload
  6. Browse for the file and select the button Open
  7. Systems loads for a while and throws the error

Cause

For security reasons and to keep the risk low of a security attack against customer clients and the S/4HANA solution, not all file types are approved for the upload.

Resolution

You may find below the list of MIME types allowed in the S/4HANA systems. 

application/msword
application/pdf 
application/postscript 
application/vnd.ms-excel 
application/vnd.ms-powerpoint 
application/vnd.ms-word 
application/vnd.openxmlformats-officedocument.presentationml.* 
application/vnd.openxmlformats-officedocument.spreadsheetml.* 
application/vnd.openxmlformats-officedocument.wordprocessingml.* 
application/x-gzip application/x-gzip 
application/x-zip-compressed 
application/xml 
application/zip 
application/x-rar 
application/x-rar-compressed 
application/rtf 
image/bmp 
image/x-windows-bmp 
image/x-ms-bmp 
image/jpeg 
image/png 
image/gif 
image/tiff 
image/vnd.dwg 
image/x-dwg 
text/csv 
text/rtf 
text/plain 
application/vnd.ms-outlook 
message/rfc822 
text/xml 
text/tab-separated-values 
application/CDFV2 
application/vnd.ms-office

 

As a workaround to the reported scenario, you may zip the files and attach the file to the document as .zip file

Keywords

Error while uploading attachment, file is either corrupted or file format not supported for upload, zip, MIME, Attachment, Upload, File, Corrupted, Format, Supported , KBA , LO-MD-FIO-CM , Fiori UI for Customer Master , Problem

Product

SAP S/4HANA Cloud all versions