SAP Knowledge Base Article - Public

3496398 - Error "This Image Format is Not Supported. Please Use JPG, JPEG, or PNG" When Uploading Profile Image

Symptom

When trying to upload the profile picture, the system displays the following error message:

"This image format is not supported. Please use JPG, JPEG, or PNG."

Environment

SAP Cloud for Customer

Reproducing the Issue

  1. Go to User Profile/Avatar icon.
  2. Click on the user name.
  3. Click on the Actions button.
  4. Select Change Image.
  5. Select the desired image.
  6. Click the OK button.
  7. The error message "This image format is not supported. Please use JPG, JPEG, or PNG." is displayed.

Cause

Multiple custom MIME types are configured and assigned to these file extensions. Any of these could be chosen for an upload, potentially leading to rejection by the application if our standard MIME type is expected.

The issue arises because when a JPG, JPEG, or PNG file is uploaded (such as during the profile picture upload), the file extension is used to determine its type and verify if it is allowed for upload. 

To check this, please follow the steps below:

  1. Go to Business Configuration Work Center.
  2. Go to Implementation Project View.
  3. Select the project and click the Open Activity List button.
  4. Go to the Fine Tuning tab.
  5. Open the "Allowed MIME Types for Document Upload" activity.
  6. In the MIME Type column, search for the type of document you tried to upload (JPG, JPEG, or PNG).
  7. Check the options available.

Resolution

It is necessary either to remove all custom MIME types where a standard MIME type is provided or, if removal is not possible, to remove the file extension JPG, JPEG, or PNG from those MIME types.

To implement this, follow these steps:

  1. Go to Business Configuration Work Center.
  2. Go to Implementation Project View.
  3. Select the project and click the Open Activity List button.
  4. Go to the Fine Tuning tab.
  5. Open the "Allowed MIME Types for Document Upload" activity.
  6. In the MIME Type column, search for the type of document you tried to upload (JPG, JPEG, or PNG).
  7. Remove all custom MIME types where a standard MIME type is provided.
  8. If removal is not possible, remove the file extension JPG, JPEG, or PNG from those MIME types

Keywords

Picture, Photo, Employee, Change , KBA , SRD-CC-RUI-DOC , Document Service Reuse UI's , How To

Product

SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions