Class UploadDropZoneTagHelper
Renders a standalone drop-zone uploader for pages that only need a drag-and-drop target.
Inheritance
UploadDropZoneTagHelper
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
Properties
AutoUpload
Declaration
[HtmlAttributeName("asp-auto-upload")]
public bool AutoUpload { 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
DropOverlay
Declaration
[HtmlAttributeName("asp-drop-overlay")]
public bool DropOverlay { get; set; }
Property Value
DropOverlayText
Declaration
[HtmlAttributeName("asp-drop-overlay-text")]
public string? DropOverlayText { get; set; }
Property Value
DropText
Gets or sets the main instruction text shown inside the drop zone.
Declaration
[HtmlAttributeName("asp-text")]
public string DropText { 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
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
Multiple
Declaration
[HtmlAttributeName("asp-multiple")]
public bool Multiple { get; set; }
Property Value
PreloadedFiles
Declaration
[HtmlAttributeName("asp-preloaded-files")]
public string? PreloadedFiles { get; set; }
Property Value
Progress
Declaration
[HtmlAttributeName("asp-progress")]
public bool Progress { get; set; }
Property Value
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
UploadUrl
Declaration
[HtmlAttributeName("asp-upload-url")]
public string? UploadUrl { get; set; }
Property Value
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
WithCredentials
Declaration
[HtmlAttributeName("asp-with-credentials")]
public bool WithCredentials { get; set; }
Property Value
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
Overrides
Implements