async def multi_handle_upload(self, files: list[rx.UploadFile]):
        """Handle the upload of a file.

        Args:
            files: The uploaded files.
        """
        for file in files:
            upload_data = await file.read()
            assert file.name is not None
            outfile = self._tmp_path / file.name

            # Save the file.
            outfile.write_bytes(upload_data)

            # Update the img var.
            self.img_list.append(file.name)
Handle the upload of a file.

        Args:
            files: The uploaded files.
        
tests/units/states/upload.py