A file: a user attachment or a model-generated file. url is an https: URL or a data: URL (base64), as in the AI SDK FileUIPart.
https:
data:
FileUIPart
Base64 payload of a data: URL, or null for remote URLs.