You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed in today's release. This is partial fix as the spontaneous file upload limits (like mime type or size) will also apply on top of the AskFileMessage limits.
Describe the bug
When Spontaneous file upload is disabled we can't upload a file with AskFileMessage.
To Reproduce
features.spontaneous_file_upload.enabled = false
inconfig.toml
Expected behavior
The config features.spontaneous_file_upload.enabled should impact only the file uploaded using the user message bar.
Screenshots
When trying to upload we are given this message in the GUI :
Desktop (please complete the following information):
Affect all browser
Smartphone (please complete the following information):
Affect all smartphone
Additional context
The GUI message is not clear. But the content found in the dev tool have more details :
detail: "File upload is not enabled"
Diving in the code we can see that the upload button use the same api endpoint (POST /project/file) than the spontaneaous upload.
This endpoint use the method chainlit.server.validate_file_upload() that check if the spontaneous_file_upload is enabled.
The text was updated successfully, but these errors were encountered: