# GraffitiUploader
Class Inherits GraffitiWebUIControl
## About
A powerful multiple file upload component that includes previews and selective uploading.
## Compatibility
### Framework API Version
| 1.0 | 2.0 |
| :---: | :---: |
| True | True |
### Web
| 32-Bit | 64-Bit |
| :---: | :---: |
| True | True |
## Event Definitions
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| FileClicked | File as GraffitiWebFile | (None) | Fired when the user clicks a file in the display. |
| FileExclude | File as GraffitiWebFile | Boolean | Fires before the file has been uploaded. Returning True in this event will trigger that the file should not be uploaded. |
| FileRemoved | File as GraffitiWebFile | (None) | Fired when the user removes a file from the display. |
| MouseEnter | (None) | (None) | The mouse has entered the control. |
| MouseExit | (None) | (None) | The mouse has exited the control. |
| Open | (None) | (None) | (None) |
| Shown | (None) | (None) | (None) |
| UploadComplete | File as GraffitiWebFile | (None) | Raised when a file upload has completed. |
| UploadProgress | File as GraffitiWebFile <br> Progress as Double | (None) | Raised when a file upload has progressed. |
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| AddFile | File as GraffitiWebFile | (None) | Adds a file element to the display (does not support previews to limit packet size. |
| Count | (None) | Integer | Returns the count of all current files. |
| File | fileIndex as Integer | GraffitiWebFile | Returns the GraffitiWebFile with matching ID. |
| File | fileID as String | GraffitiWebFile | Returns the GraffitiWebFile at the specified index. |
| Remove | File as GraffitiWebFile | (None) | Removes a file from the display. |
| RemoveAll | (None) | (None) | Remove all files from the display. |
| UpdateName | File as GraffitiWebFile | (None) | Updates the item's name in the display to match that of the GraffitiWebFile object. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| AllowRemove | Boolean | (None) | Allow users to remove items from the upload display. |
| CancelUploadConfirmText | String | (None) | Localizable string. |
| CancelUploadText | String | (None) | Localizable string. |
| CompleteText | String | (None) | Localizable string. |
| FallbackText | String | (None) | Localizable string. |
| FileTooBigText | String | (None) | Localizable string. |
| InvalidFileTypeText | String | (None) | Localizable string. |
| MaxFileSize | Integer | (None) | Maximum allowed file upload size in bytes. |
| PromptText | String | (None) | Sets the text to be displayed when the control has no currently listed files. |
| RemoveFileText | String | (None) | Localizable string. |
| SendingText | String | (None) | Localizable string. |
| ThumbnailHeight | Integer | (None) | The height to be used for display picture thumbnails. |
| ThumbnailWidth | Integer | (None) | Width of the thumbnail image in the display. |
| UploadPath | FolderItem | (None) | Root directory for upload file structure. |