Skip to content

Commit

Permalink
fix: docs
Browse files Browse the repository at this point in the history
  • Loading branch information
qvalentin committed Nov 21, 2024
1 parent d4fb000 commit 87f1c23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/chainlit/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ def validate_file_upload(file: UploadFile):
ValueError: If the file is not allowed.
"""
if config.features.spontaneous_file_upload is None:
"""Default to allowing all file types"""
"""Default for a missing config is to allow the fileupload without any restrictions"""
return
if config.features.spontaneous_file_upload.enabled is False:
raise ValueError("File upload is not enabled")
Expand Down

0 comments on commit 87f1c23

Please sign in to comment.