Properties
AllowedContentType
This property contains the type of data that the uploaded file should contain. The selection of this value will indicate how the file content will be written to the uservariable. Binary data will be base64 encoded, while text will be written as characters. If the selected value is "text", then only files with the correct binary encoded can be uploaded, because otherwise illegal text-characters would be included. This will be prevented, so when a JPG file is uploaded while this property is set to "text", then an error is shown, and no data will be uploaded to the UserVariable.
DebugLogMode
Indicates the level of detail of debug information that is logged during runtime of the website to the trace, a logfile, a database etc. The possible values are:
- None: no debug information is logged
- Simple: only basic information is given
- Extended: in addition to the information in the Simple mode the values of all the properties of the object are shown
Enabled
Possible values are 'True' or 'False'. If the value is 'False', then the object can not be used within the application.
IsPublic
Possible values are 'True' or 'False'. If the value is 'False', then the object can only be used within the document where it is created. If the value is 'True', then also from other Futurama documents can be referred to this object. This means that changes in the object also affect the document in which is referred to this object. If the value is 'True' and you attempt to move or delete the object, a warning will be given. To limit these warnings to a minimum it is recommended to set IsPublic to 'True' only when necessary.
ToolTip
In the property Tooltip a text can be entered that is shown in the application when a cursor is moved across the FileUploader. In this way information about the usage of the FileUploader can be given to the user.
UserVariable
Here you should select the UserVariable that will contain the content of the uploaded file. When a user uploads a file, the UserVariable linked to the FileUploader will hold the value entered. This UserVariable can then be used in the calculations, actions, etc. in your application.
Caution: If an XmlNode is used to read the content of the UserVariable (by selecting the UserVariable at the 'Source' property of an XmlNode), then make sure the default value of the UserVariable contains the following empty XML structure:
<UploadedFile Filename="" MimeType="" Timestamp="" IPAddress=""><![CDATA[]]></UploadedFile>
This will prevent the XmlNode giving an error, because it cannot read the contents of an XML node if the UserVariable doesn't contain any.
Visible
Possible values are 'True' or 'False'. If the value is 'True', the object will be rendered and therefore displayed in your application. If the value is 'False', the object will not be rendered.
AutoPostback
This property indicates whether the FileUploader should postback immediately after the user selects a file, or whether a seperate submit button should be used to actuate changes to the underlying UserVariable.
XmlName
The name of the object as it is shown in the source of the website. By default the XmlName is equal to the name given in the property (Name) with spaces replaced by underscores, but you are free to change it.
(Name)
The name of the object.
Comment
Here a comment can be entered. For example a short description of the object.
ID
The unique identification number of the object. This number is automatically generated by Futurama on the moment of creation. This number can be used when searching for a certain object in the Find Window
CssClass
Here the CssClass can be entered. In the stylesheet you can define the style elements that belong to this class. When this or the text-property are used, then the default appearance of the fileuploader will change into a HTML-div element. This will render the object as a block, and will allow all css styling to be applied to said DIV-element.
CAUTION: As soon as the CssClass property is filled, the original graphics will be made invisible. So it is important to provide an alternative graphical representation, otherwise the file uploader cannot be used.
Text
If the default appearance of the fileuploader does not suffice, a custom button can be made. This can be done by setting this text to generate a simple button with the provided text. This will however render the button as a HTML-div, and requires some CSS formatting to set the button's appearance beyond the default look.