WallpapersControllerPostStoreWallpaper - метод

Upload a wallpaper file selected by the user, then select it as the current, and get an image source in base64-string format.

Definition

Пространство имён: Tessa.Web.Client.Controllers
Сборка: Tessa.Web.Client (в Tessa.Web.Client.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
[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
)

Параметры

image  IFormFile
Wallpaper image contents.
cancellationToken  CancellationToken  (Optional)
Token to cancel the async task.

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

TaskActionResultString
Base64-string format containing an image source for the wallpaper.

См. также