muenzpraeger / salesforce-einstein-platform-apex

Apache License 2.0
88 stars 51 forks source link

Error sending image feedback using createFeedbackImageExample #81

Closed kaboomkazoom closed 6 years ago

kaboomkazoom commented 6 years ago

I'm getting the following error when sending jpg image feedback using the createFeedbackImageExample method: "File content must be provided in one of the supported file formats: [zip, octet-stream, jpeg, png, binary]"

Einstein platform expects jpeg (as per the error message) rather than jpg. So If I change the mimeType from 'image/jpg' to 'image/jpeg' on line 177 in Einstein_HttpBodyPart.cls it works.

Request you to please fix it.