AiFilesControllerGetPreviewFile - метод

Get the preview file (PDF file for file types that can't be displayed in web browser by itself) for base content with specified identifier from AI cache.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.2+a8f0dd3c063817b2e3f05a923303d808e447c338
C#
[HttpGetAttribute("preview-file")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[ProducesAttribute("application/octet-stream", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<IActionResult> GetPreviewFile(
	[FromQueryAttribute] Guid fileID,
	[FromQueryAttribute] string token,
	CancellationToken cancellationToken = default
)

Параметры

fileID  Guid
File identifier.
token  String
File access token.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

Возвращаемое значение

TaskIActionResult
Stream with file contents.

См. также