Skip to content

Commit

Permalink
fix: docs
Browse files Browse the repository at this point in the history
  • Loading branch information
qvalentin authored and dokterbob committed Dec 3, 2024
1 parent 873ff42 commit 37661ec
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 37661ec

Please sign in to comment.