IFileWidget Properties |
The IFileWidget type exposes the following members.
Name | Description | |
---|---|---|
Accept |
Gets/sets the types of files that the server accepts (that can be submitted through a file upload).
This value is used to set the HTML input ACCEPT attribute on the File subcontrol.
See http://www.w3schools.com/tags/att_input_accept.asp for more information on ACCEPT.
Note that ACCEPT is now supported by most recent browsers.
It appears that the most recent widely-used browser the DOES NOT support ACCEPT is Internet Explorer 9.
| |
File |
Gets the control's ImageButton.
| |
FilePathFieldClientId |
The ClientID of the control used to hold the true filename when
this widget is used to show the "pretty" name. If this value is
null or blank then it is assumed that there is no dedicated
control for the "pretty" name and so only the true filename is
captured.
| |
MaxFileErrorMessage | ||
MaxFileKB |
Gets/sets the maximum file size that a user should be allowed to upload.
The size is specified in KB (1024 bytes) units, so, for example, 10 means 10240 bytes.
Generally you should also set MaxFileErrorMessage if you set MaxFileKB.
See http://www.w3schools.com/jsref/prop_fileupload_files.asp for more information on how this is applied during client-side validation.
Note that client-side validation for this setting can be performed on more recent browsers as they expose the file size for user-selected upload files.
It appears that the most recent widely-used browser the DOES NOT support this is Internet Explorer 9.
| |
NoFileExtDisplay |
Specifies whether or not the filename extension should be included
in the "pretty" name (if there is a "pretty" name).
| |
UsesScreenReader |
Gets/sets whether or a Screen Reader for the visually impaired is being used. [3/6/09 CW]
|