AvatarsController.PostStoreAvatar - метод

Uploads avatar file selected by the user and sets it as the current user avatar.

Definition

Пространство имён: Tessa.Web.Client.Controllers
Сборка: Tessa.Web.Client (в Tessa.Web.Client.dll) Версия: 4.0.5
C#
[HttpPostAttribute("store")]
[DisableRequestSizeLimitAttribute]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[ProducesResponseTypeAttribute(204)]
public Task<IActionResult> PostStoreAvatar(
	IFormFile image,
	[FromFormAttribute] Guid? userID = null,
	CancellationToken cancellationToken = default
)

Параметры

image  IFormFile
Avatars image contents.
userID  Nullable<Guid>  (Optional)
ID of the user to set the avatar for.
cancellationToken  CancellationToken  (Optional)
Token to cancel async task.

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

Task<IActionResult>

См. также