The issue is that in the code you are referencing the FileLoader from the standard Anvil Components, whereas in the design you are using the Material 3 FileLoader.
To fix that, just add this after the from anvil import *
:
from m3.components import FileLoader