Why did anvil.media.from_file stop working here?

The only durable place to keep it would be in the app’s database. From there, downloading it and/or emailing it have dozens of examples, in the docs and this very forum, so I’m not going to repeat them.