CardsControllerPostGetFileContentMultipart - метод

Get contents for a file with specified attributes as multipart/form-data, where first part with name "Response" is CardGetFileContentResponse serialized as typed JSON application/json, and second part with name "Content" (if its present) is binary file contents application/octet-stream with recommended file name in Content-Disposition header.

If response has HasContent as false, then second part is absent.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
C#
[HttpPostAttribute("get-file-content-multipart")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[TypedJsonBodyAttribute]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesAttribute("multipart/form-data", new string[] { ... })]
[ProducesResponseTypeAttribute(200, Type = typeof(MultipartContent))]
public Task<MultipartResult> PostGetFileContentMultipart(
	[FromBodyAttribute] CardGetFileContentRequest request,
	CancellationToken cancellationToken = default
)

Параметры

request  CardGetFileContentRequest
Request to get file contents.
cancellationToken  CancellationToken  (Optional)
Token to cancel async task.

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

TaskMultipartResult
Response CardGetFileContentResponse and binary file contents.

См. также