getFileInfoByUri

public static FileInfo getFileInfoByUri(Context context, Uri uri)

Retrieves the file name, size, and type from the URI.

Return

ContentDocument Returns the file name, size, and type.

Parameters

context

The context.

uri

Supports URIs starting with 'content' and 'File'.