AiFilesControllerGetFileContent - метод

Get the file content (base or derived - extracted text or pages) with specified identifier from AI cache.

Definition

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

Параметры

fileID  Guid
File identifier.
token  String
File access token.
operation  AiFileRequestOperation  (Optional)
Operation to be performed alongside putting the file in AI cache.
page  NullableInt32  (Optional)
Page number. Only required when operation is AiFileRequestOperation.Page
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

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

TaskIActionResult
Stream with file contents.

См. также