IRPCDocumentOperationsFileIOInternal.GetFileOutline

View as Markdown

Server integration API / specialized internal: not for applications write session or assertion returns metadata structure version

Gets the size and MD5 checksum of a file version.

ServiceDocument file I/O for server components MFiles.IRPCDocumentOperationsFileIOInternal
gRPC method/MFiles.IRPCDocumentOperationsFileIOInternal/GetFileOutline
HTTP (mf-http-grpc)POST /grpc/v1/get-file-outline
RequestGetFileOutlineRequest
ResponseGetFileOutlineResponse
Book and levelServer integration API, specialized
Kindwrite
SessionRequired: a session (mfiles-session-id-bin metadata) or a session assertion (x-mf-session-assertion metadata).
Idempotentno
Returns metadata structure versionyes (in the mfiles-metadata-version-bin trailer)
Streamingnone (unary)

Remarks

For M-Files components only. M-Files Server calls it on another M-Files Server. Applications should use GetFileSize, or the file_outline of DownloadFile_Begin with need_checksum.

Request: GetFileOutlineRequest

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
obj_file_verObjFileVerThe object and the specific file version.
obj_file_ver.obj_idObjIDThe object that owns the file.
obj_file_ver.obj_id.typeint32The object type ID, for example 0 for documents. In a lookup value, the value list ID (for a lookup to objects, the object type ID).
obj_file_ver.obj_id.item_idItemIDThe ID of the object within its type, in item_id.internal_id.
obj_file_ver.file_verFileVerThe specific file version, as in File.file_ver.
obj_file_ver.file_ver.file_idFileIDThe file.
obj_file_ver.file_ver.typeFileVerTypeFILE_VER_TYPE_SPECIFIC for a file version number.Values: FILE_VER_TYPE_UNINITIALIZED (0), FILE_VER_TYPE_LATEST (1), FILE_VER_TYPE_ANY (2), FILE_VER_TYPE_SPECIFIC (3).
obj_file_ver.file_ver.internal_versionint32The file version number.
obj_file_ver.file_ver.external_repository_versionstringUsed only for files in external repositories. Leave empty.
obj_file_ver.file_ver.external_repository_sort_keyint64Used only for files in external repositories. Leave 0.

Response: GetFileOutlineResponse

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
data_file_versionint32The version of the stored data file of this file version.
file_outlineFileOutlinesize in bytes (size_precision is FILE_SIZE_PRECISION_EXACT) and md5_checksum as 32 hexadecimal digits.
file_outline.sizeint64The size of the content in bytes, in the downloaded format.
file_outline.size_precisionFileSizePrecisionThe file size precision. If the file size precision is 'exact', the size can be used for reading the file content. If the precision is 'unknown', the size field should not be used at all.Values: FILE_SIZE_PRECISION_EXACT (0), FILE_SIZE_PRECISION_ESTIMATE (1), FILE_SIZE_PRECISION_UNKNOWN (2).
file_outline.md5_checksumstringThe MD5 checksum as 32 hexadecimal digits, if requested; 32 zeros otherwise.