Skip to content

Commit

Permalink
chore: save uploaded file extension as lower case (#10111)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjlarry authored Oct 31, 2024
1 parent 8b9fed7 commit e36f5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/services/file_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def upload_file(
filename = file.filename
if not filename:
raise FileNotExistsError
extension = filename.split(".")[-1]
extension = filename.split(".")[-1].lower()
if len(filename) > 200:
filename = filename.split(".")[0][:200] + "." + extension

Expand Down

0 comments on commit e36f5cb

Please sign in to comment.