Web Messaging SDK file upload MIME validation failing silently

Stuck on implementing file attachments in our Vue 3 supervisor dashboard. The Genesys Cloud Web Messaging SDK seems to reject PDFs over 2MB without throwing a clear error, just hanging on the upload promise.

I am using the standard sendFile method from the guest API. Is there a specific configuration flag for accepted MIME types or a hard size limit I need to enforce client-side before triggering the upload?

Here is the snippet failing:

await messagingClient.sendFile(fileObj, { mimeType: 'application/pdf' });

Nothing logs to console. Any ideas?

The root cause here is the maxFileSize limit in the Web Messaging configuration. The SDK defaults to a lower threshold, causing silent failures for larger PDFs.

  1. Update the webMessaging config object.
  2. Set maxFileSize to at least 5242880 bytes.
const config = {
 webMessaging: {
 maxFileSize: 5242880
 }
};

Verify the MIME whitelist in Architect matches your file types.