CardsControllerPostStoreFiles - метод

Save card with its files contents. Similar to request PostStore(CardStoreRequest, CancellationToken), but allows to provide files contents in form of multipart/form-data in request body (files are attached to the card as being created or replaced).

First part is form data form-data with attributes being named according to CardStoreFilesRequest: "Header" is CardHeader object (typed JSON), and "Request" is CardStoreRequest object (typed JSON).

Consequent parts are binary file contents application/octet-stream in the order, resolved by GetOrderedFiles method of CardHeader object.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
C#
[HttpPostAttribute("store-files")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[DisableRequestSizeLimitAttribute]
[DisableFormValueModelBindingAttribute]
[ConsumesAttribute("multipart/form-data", new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<CardStoreResponse>> PostStoreFiles(
	CancellationToken cancellationToken = default
)

Параметры

cancellationToken  CancellationToken  (Optional)
Token to cancel async task.

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

TaskActionResultCardStoreResponse
Response to the request.

См. также