Search Results for

Show / Hide Table of Contents

# Class UploadAttachmentsTagHelper

Renders an attachments-style uploader that keeps a visible list of uploaded files.

##### Inheritance

object
TagHelper
UploadAttachmentsTagHelper

##### Implements

ITagHelper
ITagHelperComponent

##### Inherited Members

TagHelper.Init(TagHelperContext)
TagHelper.ProcessAsync(TagHelperContext, TagHelperOutput)
TagHelper.Order
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()

###### Namespace: CoreUpload.TagHelpers

###### 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

Type | Name | Description
--- | --- | ---
IOptions<CoreUploadOptions> | options |
LicenseService | licenseService |

### Properties

#### BrowseButton

##### Declaration

    [HtmlAttributeName("asp-browse-button")]
    public string? BrowseButton { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### ButtonClass

##### Declaration

    [HtmlAttributeName("asp-button-class")]
    public string? ButtonClass { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### ButtonText

##### Declaration

    [HtmlAttributeName("asp-button-text")]
    public string ButtonText { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### DeleteUrl

##### Declaration

    [HtmlAttributeName("asp-delete-url")]
    public string? DeleteUrl { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### DirectorySelection

##### Declaration

    [HtmlAttributeName("asp-directory")]
    public bool DirectorySelection { get; set; }

##### Property Value

Type | Description
--- | ---
bool |

#### Extensions

##### Declaration

    [HtmlAttributeName("asp-extensions")]
    public string? Extensions { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### HiddenInputId

##### Declaration

    [HtmlAttributeName("asp-hidden-input-id")]
    public string? HiddenInputId { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### 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

Type | Description
--- | ---
int |

#### MaxSize

##### Declaration

    [HtmlAttributeName("asp-max-size")]
    public string? MaxSize { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### MimeTypes

##### Declaration

    [HtmlAttributeName("asp-mime-types")]
    public string? MimeTypes { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### OnChange

##### Declaration

    [HtmlAttributeName("asp-on-change")]
    public string? OnChange { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### PreloadedFiles

##### Declaration

    [HtmlAttributeName("asp-preloaded-files")]
    public string? PreloadedFiles { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### Removable

##### Declaration

    [HtmlAttributeName("asp-removable")]
    public bool Removable { get; set; }

##### Property Value

Type | Description
--- | ---
bool |

#### ShowSize

##### Declaration

    [HtmlAttributeName("asp-show-size")]
    public bool ShowSize { get; set; }

##### Property Value

Type | Description
--- | ---
bool |

#### UploadUrl

##### Declaration

    [HtmlAttributeName("asp-upload-url")]
    public string? UploadUrl { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### WithCredentials

##### Declaration

    [HtmlAttributeName("asp-with-credentials")]
    public bool WithCredentials { get; set; }

##### Property Value

Type | Description
--- | ---
bool |

### 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

Type | Name | Description
--- | --- | ---
TagHelperContext | context |
TagHelperOutput | output |

##### Overrides

TagHelper.Process(TagHelperContext, TagHelperOutput)

### Implements

ITagHelper
ITagHelperComponent