Search Results for

Show / Hide Table of Contents

# Class UploadDropZoneTagHelper

Renders a standalone drop-zone uploader for pages that only need a drag-and-drop target.

##### Inheritance

object
TagHelper
UploadDropZoneTagHelper

##### 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-dropzone")]
    public class UploadDropZoneTagHelper : TagHelper, ITagHelper, ITagHelperComponent

### Constructors

#### UploadDropZoneTagHelper(IOptions<CoreUploadOptions>, LicenseService)

##### Declaration

    public UploadDropZoneTagHelper(IOptions<CoreUploadOptions> options, LicenseService licenseService)

##### Parameters

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

### Properties

#### AutoUpload

##### Declaration

    [HtmlAttributeName("asp-auto-upload")]
    public bool AutoUpload { get; set; }

##### Property Value

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

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

#### DropOverlay

##### Declaration

    [HtmlAttributeName("asp-drop-overlay")]
    public bool DropOverlay { get; set; }

##### Property Value

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

#### DropOverlayText

##### Declaration

    [HtmlAttributeName("asp-drop-overlay-text")]
    public string? DropOverlayText { get; set; }

##### Property Value

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

#### DropText

Gets or sets the main instruction text shown inside the drop zone.

##### Declaration

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

##### Property Value

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

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

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

#### Multiple

##### Declaration

    [HtmlAttributeName("asp-multiple")]
    public bool Multiple { get; set; }

##### Property Value

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

#### PreloadedFiles

##### Declaration

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

##### Property Value

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

#### Progress

##### Declaration

    [HtmlAttributeName("asp-progress")]
    public bool Progress { get; set; }

##### Property Value

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

#### UploadButtonText

Gets or sets the label shown on the manual upload (submit) button that appears when `asp-auto-upload="false"`.

##### Declaration

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

##### Property Value

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

#### UploadUrl

##### Declaration

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

##### Property Value

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

#### UploaderId

Gets or sets the ID of a related uploader instance when the drop zone is coordinating with another uploader.

##### Declaration

    [HtmlAttributeName("asp-uploader-id")]
    public string? UploaderId { 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 standalone drop-zone 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