API Reference
Command
New-HtmlXDropzone
Creates a dropzone file picker control.
Remarks
Part of the HtmlForgeX.PowerShell DSL.
Examples
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
- Restrict accepted mime types/extensions (e.g., "image/*,.pdf").
- Hint string
- Dropzone hint text.
- MaxFileBytes long
- Maximum file size in bytes.
- MaxFiles int
- Maximum number of files.
- MaxTotalBytes long
- Maximum total size in bytes.
- Multiple SwitchParameter
- Allow multiple file selection.
- Name string
- Input name attribute.
- Resumable SwitchParameter
- Enable resumable uploads with chunking.
- ResumableChunkBytes int
- Chunk size for resumable upload (bytes).
- ResumableRetries int
- Max retries per chunk.
- ShowSelectedFiles bool
- Show or hide selected files list.
- Title string
- Dropzone title text.
- UploadFeatures DropzoneUploadFeatures
- 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
- Upload HTTP method (default: POST).
- UploadUrl string
- Async upload URL.
Outputs
HtmlForgeX.TablerDropzone