CardsController.PostGetFileContentMultipart - метод
Загружает содержимое файла с указанными параметрами в виде содержимого
multipart/form-data,
где первый part с именем "Response" содержит
CardGetFileContentResponse в виде типизированного Json
application/json,
и второй part с именем "Content" (при его наличии) представляет бинарное содержимое файла
application/octet-stream
(также предоставляется рекомендуемое имя файла).
Если в ответе на запрос указан
HasContent, равный
false,
то второй part с содержимым файла отсутствует.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 3.6.0.23
[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
)
<HttpPostAttribute("get-file-content-multipart")>
<SessionMethodAttribute(UserAccessLevel.Regular)>
<TypedJsonBodyAttribute>
<ConsumesAttribute("application/json", New String() { ... })>
<ProducesAttribute("multipart/form-data", New String() { ... })>
<ProducesResponseTypeAttribute(200, Type := GetType(MultipartContent))>
Public Function PostGetFileContentMultipart (
<FromBodyAttribute> request As CardGetFileContentRequest,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of MultipartResult)
public:
[HttpPostAttribute(L"get-file-content-multipart")]
[SessionMethodAttribute(UserAccessLevel::Regular)]
[TypedJsonBodyAttribute]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesAttribute(L"multipart/form-data", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200, Type = typeof(MultipartContent))]
Task<MultipartResult^>^ PostGetFileContentMultipart(
[FromBodyAttribute] CardGetFileContentRequest^ request,
CancellationToken cancellationToken = CancellationToken()
)
[<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))>]
member PostGetFileContentMultipart :
[<FromBodyAttribute>] request : CardGetFileContentRequest *
?cancellationToken : CancellationToken
-> Task<MultipartResult>
- request CardGetFileContentRequest
- Запрос на загрузку содержимого файла.
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
Task<MultipartResult>Ответ на запрос на загрузку содержимого файла и собственно бинарное содержимое файла.