WallpapersControllerPostStoreWallpaper - метод
Upload a wallpaper file selected by the user, then select it as the current, and get an image source in base64-string format.
Пространство имён: Tessa.Web.Client.ControllersСборка: Tessa.Web.Client (в Tessa.Web.Client.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
[HttpPostAttribute("store")]
[DisableRequestSizeLimitAttribute]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[ProducesAttribute("text/plain", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
[ProducesResponseTypeAttribute(204)]
public Task<ActionResult<string>> PostStoreWallpaper(
IFormFile image,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("store")>
<DisableRequestSizeLimitAttribute>
<SessionMethodAttribute(UserAccessLevel.Regular, false, New String() { ... })>
<ProducesAttribute("text/plain", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
<ProducesResponseTypeAttribute(204)>
Public Function PostStoreWallpaper (
image As IFormFile,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of String))
public:
[HttpPostAttribute(L"store")]
[DisableRequestSizeLimitAttribute]
[SessionMethodAttribute(UserAccessLevel::Regular, false, __gc new array<String^>^ { ... })]
[ProducesAttribute(L"text/plain", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
[ProducesResponseTypeAttribute(204)]
Task<ActionResult<String^>^>^ PostStoreWallpaper(
IFormFile^ image,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("store")>]
[<DisableRequestSizeLimitAttribute>]
[<SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })>]
[<ProducesAttribute("text/plain", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
[<ProducesResponseTypeAttribute(204)>]
member PostStoreWallpaper :
image : IFormFile *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<string>>
- image IFormFile
- Wallpaper image contents.
- cancellationToken CancellationToken (Optional)
- Token to cancel the async task.
TaskActionResultStringBase64-string format containing an image source for the wallpaper.