Skip to content

fix(instagram): allow PDF attachments - #70

Open
breken-ai wants to merge 1 commit into
chatwoot:mainfrom
breken-ai:fix/instagram-pdf-attachments
Open

breken-ai wants to merge 1 commit into
chatwoot:mainfrom
breken-ai:fix/instagram-pdf-attachments

Conversation

@breken-ai

Copy link
Copy Markdown

Summary

  • allow application/pdf in the Instagram upload picker
  • enforce Meta's 25 MB document limit for Instagram
  • cover both the accepted MIME type and document size rule

Verification

  • yarn test --runInBand test/fileUploadRules.test.ts (17 passed)
  • yarn lint
  • yarn build

Fixes chatwoot/chatwoot#15816. Credit to @Sohaibsajid50 for reporting the mismatch, tracing the picker to @chatwoot/utils, and proposing the channel-rule fix.

Built by breken, your AI support engineer - breken.ai - this one's on us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Instagram reply box blocks PDF attachments although the backend and Meta's API both support them

1 participant