Commit 3c70941c authored by Pierre Dittgen's avatar Pierre Dittgen
Browse files

ignore case in file extension

parent ab56bb02
......@@ -54,7 +54,7 @@ class UploadedFileValidataResource(ValidataResource):
"""Uploaded file implementation"""
def detect_format_from_file_extension(filename: str):
ext = Path(filename).suffix
ext = Path(filename).suffix.lower()
if ext in (".csv", ".tsv", ".ods", ".xls", ".xlsx"):
return ext[1:]
return None
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment