Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

Fixed setting filetypes to None, causing the parameter not to work (#1926)

Peter Willemsendb69f9f163d6
diff --git a/marimo/_plugins/ui/_impl/input.py b/marimo/_plugins/ui/_impl/input.py
index 061176baa3..eb9ef01c5d 100644
--- a/marimo/_plugins/ui/_impl/input.py
+++ b/marimo/_plugins/ui/_impl/input.py
@@ -1360,7 +1360,6 @@ class file_browser(UIElement[List[Dict[str, Any]], Sequence[FileInfo]]):
+ "Must be either 'file' or 'directory'."
)
else:
- self.filetypes = None
self.selection_mode = selection_mode
if not initial_path: