HtmlForgeX

API Reference

Command

New-HtmlXDropzone

Namespace HtmlForgeX.PowerShell
Outputs
HtmlForgeX.TablerDropzone

Creates a dropzone file picker control.

Remarks

Part of the HtmlForgeX.PowerShell DSL.

Examples

Authored help example

Example 1: Dropzone with file limits and async upload.


New-HtmlXDropzone -Name "upload" -Multiple -MaxFiles 5 -UploadUrl "/upload" -UploadFeatures AutoStart,ShowProgress
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

New-HtmlXDropzone [-Accept <string>] [-Hint <string>] [-MaxFileBytes <long>] [-MaxFiles <int>] [-MaxTotalBytes <long>] [-Multiple] [-Name <string>] [-Resumable] [-ResumableChunkBytes <int>] [-ResumableRetries <int>] [-ShowSelectedFiles <bool>] [-Title <string>] [-UploadFeatures <AutoStart>] [-UploadMethod <string>] [-UploadUrl <string>] [<CommonParameters>]
#

Parameters

Accept string optionalposition: namedpipeline: false
Restrict accepted mime types/extensions (e.g., "image/*,.pdf").
Hint string optionalposition: namedpipeline: false
Dropzone hint text.
MaxFileBytes long optionalposition: namedpipeline: false
Maximum file size in bytes.
MaxFiles int optionalposition: namedpipeline: false
Maximum number of files.
MaxTotalBytes long optionalposition: namedpipeline: false
Maximum total size in bytes.
Multiple SwitchParameter optionalposition: namedpipeline: false
Allow multiple file selection.
Name string optionalposition: namedpipeline: false
Input name attribute.
Resumable SwitchParameter optionalposition: namedpipeline: false
Enable resumable uploads with chunking.
ResumableChunkBytes int optionalposition: namedpipeline: false
Chunk size for resumable upload (bytes).
ResumableRetries int optionalposition: namedpipeline: false
Max retries per chunk.
ShowSelectedFiles bool optionalposition: namedpipeline: false
Show or hide selected files list.
Title string optionalposition: namedpipeline: false
Dropzone title text.
UploadFeatures DropzoneUploadFeatures optionalposition: namedpipeline: falsevalues: 8
Async upload feature flags. Possible values: None, AutoStart, ShowProgress, RedirectOnSuccess, DisableDuringUpload, ResetOnSuccess, IncludeFormFields, AllowCancel, Default
Possible values: AutoStart, ShowProgress, RedirectOnSuccess, DisableDuringUpload, ResetOnSuccess, IncludeFormFields, AllowCancel, Default
UploadMethod string optionalposition: namedpipeline: false
Upload HTTP method (default: POST).
UploadUrl string optionalposition: namedpipeline: false
Async upload URL.

Outputs

HtmlForgeX.TablerDropzone