Skip to content
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

Spontaneous file upload max_files not working as expected #1527

Open
jbcallaghan opened this issue Nov 18, 2024 · 0 comments
Open

Spontaneous file upload max_files not working as expected #1527

jbcallaghan opened this issue Nov 18, 2024 · 0 comments
Labels
bug Something isn't working needs-triage

Comments

@jbcallaghan
Copy link

Bug:
Spontaneous file upload doesn't fully honour the max_files setting. (Chainlit 1.3.2)

Reproduce:

config.toml
[features.spontaneous_file_upload]
enabled = true
accept = ["/"]
max_files = 1
max_size_mb = 10

  1. Click to attach a file
  2. Select one file and click open
  3. Now click attach a file again
  4. Select another file and click open

And now you have exceeded the max_files restriction.

Expected:

You should be prevented from attaching further files when the limit set in config.toml has been reached.

@dosubot dosubot bot added the bug Something isn't working label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage
Projects
None yet
Development

No branches or pull requests

1 participant