AvatarsControllerPostStoreAvatar - метод
Uploads avatar file selected by the user and sets it as the current user avatar.
Пространство имён: Tessa.Web.Client.ControllersСборка: Tessa.Web.Client (в Tessa.Web.Client.dll) Версия: 4.0.4
[HttpPostAttribute("store")]
[DisableRequestSizeLimitAttribute]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[ProducesResponseTypeAttribute(204)]
public Task<IActionResult> PostStoreAvatar(
IFormFile image,
[FromFormAttribute] Guid? userID = null,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("store")>
<DisableRequestSizeLimitAttribute>
<SessionMethodAttribute(UserAccessLevel.Regular)>
<ProducesResponseTypeAttribute(204)>
Public Function PostStoreAvatar (
image As IFormFile,
<FromFormAttribute> Optional userID As Guid? = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of IActionResult)
public:
[HttpPostAttribute(L"store")]
[DisableRequestSizeLimitAttribute]
[SessionMethodAttribute(UserAccessLevel::Regular)]
[ProducesResponseTypeAttribute(204)]
Task<IActionResult^>^ PostStoreAvatar(
IFormFile^ image,
[FromFormAttribute] Nullable<Guid> userID = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("store")>]
[<DisableRequestSizeLimitAttribute>]
[<SessionMethodAttribute(UserAccessLevel.Regular)>]
[<ProducesResponseTypeAttribute(204)>]
member PostStoreAvatar :
image : IFormFile *
[<FromFormAttribute>] ?userID : Nullable<Guid> *
?cancellationToken : CancellationToken
(* Defaults:
let _userID = defaultArg userID null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<IActionResult>
- image IFormFile
- Avatars image contents.
- userID NullableGuid (Optional)
- ID of the user to set the avatar for.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
TaskIActionResult