Web Messaging SDK file upload limits and MIME type validation

Hey everyone,

Trying to push file uploads through the Web Messaging SDK but hitting a wall. Is there a documented list of accepted MIME types and hard size limits for genesys.messaging.sendFile()?

We’re testing with a standard PDF (about 2MB) and a larger image file. The PDF goes through fine, but the image gets rejected silently. No error callback, just the file doesn’t show up in the transcript. Here’s the snippet we’re using:

const fileInput = document.getElementById('file-upload');
const file = fileInput.files[0];

if (file) {
 genesys.messaging.sendFile(file, {
 onSend: (message) => {
 console.log('File sent:', message);
 },
 onError: (error) => {
 console.error('Upload failed:', error);
 }
 });
}

Getting a generic error in the console:

{
 "error": {
 "code": "invalid_content_type",
 "message": "Unsupported file type"
 }
}

I’ve checked the docs but they’re pretty vague on the specifics. Are we limited to PDFs and certain image formats? What’s the max file size before the API drops the packet? We need to handle customer support attachments, so knowing the exact constraints is crucial.

Thanks!