We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae0316a commit 8c2afb8Copy full SHA for 8c2afb8
1 file changed
backend/open_webui/routers/files.py
@@ -207,8 +207,8 @@ def upload_file_handler(
207
filename = os.path.basename(unsanitized_filename)
208
209
file_extension = os.path.splitext(filename)[1]
210
- # Remove the leading dot from the file extension
211
- file_extension = file_extension[1:] if file_extension else ''
+ # Remove the leading dot from the file extension and lowercase it
+ file_extension = file_extension[1:].lower() if file_extension else ''
212
213
if process and request.app.state.config.ALLOWED_FILE_EXTENSIONS:
214
request.app.state.config.ALLOWED_FILE_EXTENSIONS = [
0 commit comments