fix(node): correct file property name in function switch (#10284)

This commit is contained in:
-LAN-
2024-11-05 14:23:18 +08:00
committed by GitHub
parent 302f4407f6
commit 08c731fd84
2 changed files with 47 additions and 4 deletions

View File

@@ -157,7 +157,7 @@ def _get_file_extract_string_func(*, key: str) -> Callable[[File], str]:
return lambda x: x.type
case "extension":
return lambda x: x.extension or ""
case "mimetype":
case "mime_type":
return lambda x: x.mime_type or ""
case "transfer_method":
return lambda x: x.transfer_method