Bug in New M3 (beta) fileuploader files

It seems the file uploader in the M3 (beta) theme has a bug and does not allow the selected files to be accessed.

What I’m trying to do:
I am trying to use the file uploader in the new m3 beta theme, but selected files cannot be accessed (None type)

What I’ve tried and what’s not working:
It works in the Material Design theme.
In the M3 (beta) I get:

TypeError: 'NoneType' object is not iterable at Form1, line 14` called from app/m3/_Components/Button/__init__.py:22

Code Sample:

    for file in self.file_loader_1.files:
      print(file.length)

Clone link:

I have verified this is definitely happening and it happens whether or not the multiple property is toggled on.

This is not a problem with the file property though.

Thanks for reporting this! We’ll get it fixed very shortly

1 Like

This issue is resolved in the latest release of the theme! Please see here for details: Material 3 Theme v1.2.0

3 Likes