Avatar Upload
Allows users to upload an avatar.
Allows users to upload an avatar.
| Field | Value |
|---|
| Name | xp/avatar-upload-field |
| Title | Avatar Upload |
| Category | xpac-form-generic-field |
| API version | 3 |
| Keywords | xpac, form, field, avatar, upload |
| Package | user-profiles |
| Metadata file | dist/packages/user-profiles/blocks/avatar-upload/block.json |
| Feature | Value |
|---|
className | Disabled |
| Name | Type | Default | Source/Enum |
|---|
additionalAttributes | object | {} | — |
buttonText | string | "Upload" | — |
description | string | "" | source html; selector .xp-block-form-field__description |
id | string | "" | — |
label | string | "Untitled" | — |
labelVisibility | string | "visible" | enum "visible", "hidden" |
maxFilesCount | string | "" | — |
maxUploadSize | object | {"size":"","unit":"b"} | — |
multiple | boolean | false | — |
name | string | "" | — |
rules | object | {"required":{"value":false,"message":""}} | — |
selectedTypes | array | ["jpg|jpeg|jpe","gif","png","bmp","tiff|tif","webp","ico","heic"] | — |