IRPCObjectOperations.DownloadTempFileFromUpload_Begin

View as Markdown

Vault API / core read session or assertion idempotent

Opens a download session for a committed upload, to read it back or as a PDF, without creating an object.

ServiceObjects, versions, properties and files MFiles.IRPCObjectOperations
gRPC method/MFiles.IRPCObjectOperations/DownloadTempFileFromUpload_Begin
HTTP (mf-http-grpc)POST /grpc/v1/download-temp-file-from-upload_-begin
RequestDownloadTempFileFromUpload_BeginRequest
ResponseDownloadTempFileFromUpload_BeginResponse
Book and levelVault API, core
Kindread
SessionRequired: a session (mfiles-session-id-bin metadata) or a session assertion (x-mf-session-assertion metadata).
Idempotentyes
Returns metadata structure versionno
Streamingnone (unary)

Remarks

Pass the upload_id of an upload committed with UploadTempFileCommit; an uncommitted upload fails. Read the content with DownloadFile_ReadBlock. FILE_FORMAT_PDF returns a PDF rendition of the upload (for example to preview a document before it is created); file_extension is then "pdf". The download session ends with the upload.

Request: DownloadTempFileFromUpload_BeginRequest

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

FieldTypeDescription
upload_idint32The ID of a committed upload. 0 if file_ref is set.
file_formatFileFormatFILE_FORMAT_NATIVE (default) or FILE_FORMAT_PDF.Values: FILE_FORMAT_NATIVE (0), FILE_FORMAT_PDF (1), FILE_FORMAT_DISPLAY_ONLY_PDF (2), FILE_FORMAT_PLAIN_TEXT (3), FILE_FORMAT_MARKDOWN (4).
file_refstringThe file_ref of an upload completed with FileUploadEnd, instead of upload_id. Set exactly one of the two.
extensionstringThe file name extension, without the dot. Used only with file_ref.

Response: DownloadTempFileFromUpload_BeginResponse

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

FieldTypeDescription
download_idint32The download session for DownloadFile_ReadBlock.
file_sizeint64The size of the content to download, in bytes.
file_extensionstringThe extension of the content to download; empty if the upload has none.