resolveFileOrUrl
Resolves a given string to either a local file or a URL. If the input cannot be resolved as a URL, it attempts to interpret it as a file path.
When the input string starts with "data:", both File and URL components of the returned pair will be null, as data URLs are handled separately and do not correspond to either local files or network URLs.
Return
a Pair where the first value is a File object if resolved successfully, or null otherwise, and the second value is a URL object if resolved successfully, or null otherwise
Parameters
fileOrUrl
the input string representing either a file path or a URL