# GraffitiWebFile
Class Inherits GraffitiSuite.BaseObject
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Constructor | FileName as String <br> FileType as String <br> FileSize as Integer <br> FileData as String | (None) | Creates an instance of the class with the parameters as properties. |
| Constructor | ID as String <br> FileName as String <br> FileType as String <br> FileSize as Integer <br> FileData as String | (None) | Creates an instance of the class with the parameters as properties. |
| Operator_Convert | (None) | WebFile | |
| SaveTo | f as FolderItem <br> Overwrite as Boolean = True | FolderItem | Will save the file to the location of your choosing on the server. Returns the final save path. If Overwrite = False then the file name will be appended with numbers based on the currently existing files in the directory, such as filename-1.png . Returns Nil when an error is encountered. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| Attributes | stream | BinaryStream | |
| Data | String | Nil | The Base64 encoded data of the file. |
| ID | String | Nil | Generated string for identification purposes. |
| Name | String | Nil | The file's name. |
| Path | FolderItem | Nil | Path to the file to be written. |
| Size | Integer | Nil | The total file size. |
| Tag | Variant | Nil | Developer storage. |
| Type | String | Nil | The mime type of the uploaded file. |