localFile

suspend fun localFile(context: Context, file: FilePart, loader: FileLoader): File?(source)

file as a file in the app's cache: data: URLs decoded, http(s) and content: URLs loaded (through loader, the app's LocalFileLoader); file: URLs as they are.