LinksControllerGetFile - метод

Get file contents to download it in browser by a link.

Definition

Пространство имён: Tessa.Web.Client.Controllers
Сборка: Tessa.Web.Client (в Tessa.Web.Client.dll) Версия: 4.0.4
C#
[HttpGetAttribute("file")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[ProducesResponseTypeAttribute(200)]
public Task<IActionResult> GetFile(
	[FromQueryAttribute] Guid? cardID,
	[FromQueryAttribute] Guid? fileID,
	[FromQueryAttribute] Guid? versionID = null,
	[FromQueryAttribute] string? fileName = null,
	[FromQueryAttribute] Guid? cardTypeID = null,
	[FromQueryAttribute] string? cardTypeName = null,
	[FromQueryAttribute] string? fileTypeName = null,
	[FromQueryAttribute] bool suggestFileNameForVersion = false,
	[FromQueryAttribute] string? info = null,
	[FromQueryAttribute] bool showErrorPage = true,
	CancellationToken cancellationToken = default
)

Параметры

cardID  NullableGuid
Card identifier.
fileID  NullableGuid
File identifier.
versionID  NullableGuid  (Optional)
File version identifier.
fileName  String  (Optional)
File name with extension.
cardTypeID  NullableGuid  (Optional)
Card type identifier.
cardTypeName  String  (Optional)
Card type name (alias).
fileTypeName  String  (Optional)
File type name (alias).
suggestFileNameForVersion  Boolean  (Optional)
Recommendation to return suggested name for file version.
info  String  (Optional)
Additional parameters of the request Info, serialized as typed JSON.
showErrorPage  Boolean  (Optional)
Flag whether to return error page for a browser, and not exception in JSON form, as it happens for other APIs.
cancellationToken  CancellationToken  (Optional)
Token to cancel async task.

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

TaskIActionResult
File contents in a form browser can download.

См. также