Skip to content

💡 [REQUEST] - Fine-Grained Attachment Handling (Global & Local Settings) #937

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
abdou6666 opened this issue Apr 17, 2025 · 0 comments

Comments

@abdou6666
Copy link
Member

Start Date

No response

Implementation PR

No response

Reference Issues

No response

Summary

Context

In our chatbot framework, attachments can be received or displayed in multiple places:

  1. Administrator Avatar — admins/users upload their profile images.
  2. Attachment Block — flow‑creators add blocks where end‑admins or users can upload files (e.g., mp3, mp4, gif, Google Docs links, etc.).
  3. Chat Widget — Subscribers interacting with the chatbot may send attachments.

Currently, there is no uniform way to enforce size/type restrictions across these scenarios. We need a dual‑layered configuration system:

  • Global settings (admin‑level defaults per file type/extension) & for widget
  • Local overrides (per‑block & per extension)

🚀 Proposed Feature: Granular Attachment Settings

1. Global Settings (Admin‑Level)

Provide a central configuration where administrators define default limits for every attachment context:

  • Contexts
    • avatar: size limits for admin/user profile images
    • attachmentBlock: defaults applied to all attachment blocks
    • widget: defaults applied to Subscriber uploads in the chat widget

Basic Example

Drawbacks

  • Complexity
  • Might need to introduce breaking changes (schema changes...)

Unresolved questions

No response

@abdou6666 abdou6666 added the question Further information is requested label Apr 17, 2025
@medchedli medchedli removed the question Further information is requested label Apr 18, 2025
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

No branches or pull requests

2 participants