Web Messaging file upload MIME validation failing on valid PNGs

Hey folks,

Running into a weird issue with the Genesys Web Messaging SDK. We’ve got a client who needs to upload screenshots of error messages, so we enabled file attachments in the widget config. Everything looks fine in the sandbox, but in production, valid .png files are getting rejected with a 415 Unsupported Media Type error before the blob even hits our custom integration endpoint.

I’m using the standard genesys-cloud-messaging npm package. Here’s the init config:

const config = {
 orgId: 'my-org-id',
 deploymentId: 'my-deploy-id',
 widgetId: 'my-widget-id',
 files: {
 enabled: true,
 maxSize: 5242880, // 5MB
 acceptedTypes: ['image/png', 'image/jpeg', 'application/pdf']
 }
};

The console logs show the file object has type: "image/png", which should match the acceptedTypes array. I even tried adding image/* just to test, but that didn’t change anything. The error comes back immediately from the widget’s internal validation, not from our backend.

Is there a hidden limit on the number of files or a specific quirk with how the SDK parses the MIME type string? I’ve checked the org settings and file upload is definitely toggled on. Feels like I’m missing a simple config flag.