Class UploadAttachmentsTagHelper
Renders an attachments-style uploader that keeps a visible list of uploaded files.
Inheritance
UploadAttachmentsTagHelper
Assembly: CoreUpload.dll
Syntax
[HtmlTargetElement("upload-attachments")]
public class UploadAttachmentsTagHelper : TagHelper, ITagHelper, ITagHelperComponent
Constructors
UploadAttachmentsTagHelper(IOptions<CoreUploadOptions>, LicenseService)
Declaration
public UploadAttachmentsTagHelper(IOptions<CoreUploadOptions> options, LicenseService licenseService)
Parameters
Properties
Declaration
[HtmlAttributeName("asp-browse-button")]
public string? BrowseButton { get; set; }
Property Value
Declaration
[HtmlAttributeName("asp-button-class")]
public string? ButtonClass { get; set; }
Property Value
ButtonText
Declaration
[HtmlAttributeName("asp-button-text")]
public string ButtonText { get; set; }
Property Value
DeleteUrl
Declaration
[HtmlAttributeName("asp-delete-url")]
public string? DeleteUrl { get; set; }
Property Value
DirectorySelection
Declaration
[HtmlAttributeName("asp-directory")]
public bool DirectorySelection { get; set; }
Property Value
Extensions
Declaration
[HtmlAttributeName("asp-extensions")]
public string? Extensions { get; set; }
Property Value
Declaration
[HtmlAttributeName("asp-hidden-input-id")]
public string? HiddenInputId { get; set; }
Property Value
MaxFiles
Gets or sets the maximum number of attachments allowed in the list.
Declaration
[HtmlAttributeName("asp-max-files")]
public int MaxFiles { get; set; }
Property Value
MaxSize
Declaration
[HtmlAttributeName("asp-max-size")]
public string? MaxSize { get; set; }
Property Value
MimeTypes
Declaration
[HtmlAttributeName("asp-mime-types")]
public string? MimeTypes { get; set; }
Property Value
OnChange
Declaration
[HtmlAttributeName("asp-on-change")]
public string? OnChange { get; set; }
Property Value
PreloadedFiles
Declaration
[HtmlAttributeName("asp-preloaded-files")]
public string? PreloadedFiles { get; set; }
Property Value
Removable
Declaration
[HtmlAttributeName("asp-removable")]
public bool Removable { get; set; }
Property Value
ShowSize
Declaration
[HtmlAttributeName("asp-show-size")]
public bool ShowSize { get; set; }
Property Value
UploadUrl
Declaration
[HtmlAttributeName("asp-upload-url")]
public string? UploadUrl { get; set; }
Property Value
WithCredentials
Declaration
[HtmlAttributeName("asp-with-credentials")]
public bool WithCredentials { get; set; }
Property Value
Methods
Process(TagHelperContext, TagHelperOutput)
Generates the attachments markup and startup script for the current page.
Declaration
public override void Process(TagHelperContext context, TagHelperOutput output)
Parameters
Overrides
Implements