Skip to main content

The error event

Recoverable iframe errors fire on the error event:
intake.on('error', ({ code, message }) => {
  console.error('Filecheck error', code, message);
});

Common mistakes

MistakeCorrect approach
create('intake', { ruleId })The option is workflowId, not ruleId.
Re-deriving canProceed from status or filesUse canProceed as-is.
Secret key sk_… in browser JSServer-side only.
Fixed height on the mount divSet width only; the widget self-sizes.
Calling Filecheck() before the async script loadsPoll for window.Filecheck first.
Two elements, assuming one controls bothTrack canProceed per element.
Ignoring proof when approvalRequired: trueCall respondToProof() or the workflow stalls.
Hand-building connector bindings in a pluginPass connectorId or the connector JSON.
Polling for window.Filecheck without .mountCheck window.Filecheck && window.Filecheck.mount.