getFilePath

fun getFilePath(context: Context, uri: Uri): String?

Function to get the complete file path of an file

Return

the path of the file

Parameters

context

: the context where the file is needed

uri

: the uri of the file