diff --git a/reflex/app.py b/reflex/app.py index a298d1beef0..a1fd4327568 100644 --- a/reflex/app.py +++ b/reflex/app.py @@ -258,6 +258,15 @@ class UploadFile(StarletteUploadFile): headers: Headers = dataclasses.field(default_factory=Headers) + @property + def filename(self) -> str | None: + """Get the name of the uploaded file. + + Returns: + The name of the uploaded file. + """ + return self.name + @property def name(self) -> str | None: """Get the name of the uploaded file.