AnvilWrappedError: [Errno 2] No such file or directory: 'list.xlsx'

Hi @pananya21t, welcome to the forum!

Thanks for providing the code sample - that makes the problem a little more obvious. (Tip: you can use ```python blocks to format your code – check out the how to ask a good question post for details)

The FileLoader component is giving you a Media object - but all you’re sending to the server is the filename. Instead, if you send the file object to the server, you will transmit the uploaded file to your Jupyter notebook.

Now you need to get it into openpyxl. The load_workbook() function is expecting to load its data from a file, so you need to write that data to a temporary file, using anvil.media.TempFile. You’ll want to do something like

with anvil.media.TempFile(file) as filename:
    wb = load_workbook(filename, read_only=False, keep_vba=True)

Does that make sense?