WorkflowFileUpload Class |
Namespace: WorkflowGen.My.Web.UI.WebControls
The WorkflowFileUpload type exposes the following members.
Name | Description | |
---|---|---|
WorkflowFileUpload |
Creates a new instance of the object WorkflowFileUpload
|
Name | Description | |
---|---|---|
AddImageUrl |
The image url for Add and Replace
| |
AddStyle |
Upload link style property
| |
AddText |
Add link label property
| |
AllowedExtensions |
Allowed extensions property
| |
AutoPostBack |
If true, auto post back on file choice will be enabled
| |
CancelImageUrl |
The image url for Cancel Replace
| |
CancelText |
Cancel link label property
| |
ControlsStyle |
How the control is displayed to the user using the DisplayType enumeration
| |
Culture |
Culture
| |
DeleteImageUrl |
The image url for Delete
| |
DeleteStyle |
Delete link style property
| |
DeleteText |
Delete link label property
| |
DisplayMode |
Display Mode property
| |
DownloadLink |
If true, link on file download will be enabled
| |
DownloadStyle |
Download link style property
| |
EmbedImagePreview |
Source of the image/pdf preview in the form archive. If True, the whole image/pdf will be embedded in the form archive. If false, the image/pdf source will come from a URL to WorkflowGen.
| |
EmptyFileErrorMessage |
Empty File Error Message property
| |
ExtensionRestrictionErrorMessage |
Forbidden File Extension Error Message property
| |
FileInfo |
Return the FileInfo of the uploaded file if file exists
Else return null
| |
FileName |
Return the filename of the uploaded file
| |
FileSizeLimit |
Maximum file size property
| |
FileSizeStyle |
File size description style property
| |
ForbiddenExtensions |
Forbidden extensions property
| |
HasFile |
Return true if a file has been uploaded
| |
HasPostedFile |
Return true if a file has been posted
| |
ModifyImageUrl |
The image url for Cancel Replace
| |
ModifyStyle |
Modify link style property
| |
OverwriteText |
Overwrite link label property
| |
PostedFile |
Return the posted file
| |
PreviewImageHeight |
Set the CSS height value for the image/pdf preview
| |
PreviewImagePosition |
Choices: Top, Bottom
| |
PreviewImageStyle |
Image preview style property
| |
PreviewImageWidth |
Set the CSS width value for the image/pdf preview
| |
ReadOnly |
If true, control is in read only mode
| |
RequiredStyleWebControl |
WebControl used for applying a required style
| |
SeparatorStyle |
Separator char style property
| |
ShowFileSize |
If true, control will display file size
| |
ShowPreviewImage |
If true, control will display the image or pdf preview when possible
Supported file extensions are .bmp, .gif, .jpg, .jpeg, .png, .svg and .pdf
| |
SizeRestrictionErrorMessage |
Forbidden File Size Error Message property
| |
UpdateText |
Update link label property
| |
UploadStyle |
Upload control style property
| |
ValidationValue |
Returns the value for validation
| |
Width |
FileUpload Width
|
Name | Description | |
---|---|---|
AttachFile(String) |
Only if Extension is not forbidden AND
Extension is allowed or all extensions are allowed AND
File Size does not exceed Max Size
| |
AttachFile(String, Stream) |
Only if file stream does not exceed Max Size
| |
ChangeToFormArchiveLayout |
Remove post backs and replace the download link and image source with an absolute URL to WFGEN
Note: DownloadLink must be true and EmbedImagePreview false for their respective updates.
| |
CreateChildControls |
Creates the constituents controls
(Overrides ControlCreateChildControls.) | |
LoadControlState |
Control state loading
(Overrides ControlLoadControlState(Object).) | |
OnDataBinding |
Init of the stateBag and public properties before the Page Load
(Overrides ControlOnDataBinding(EventArgs).) | |
OnInit |
Initialization
(Overrides ControlOnInit(EventArgs).) | |
OnLoad |
Executed when control is loaded
WorkflowFileUpload will first see if there is any new file in his storage directory
If a file appeared WorkflowFileUpload will try to apply restriction rules (size limit and extensions)
If the last created file is accepted then he'll delete others
Else the control will see if another file was registered before the current load
(Overrides ControlOnLoad(EventArgs).) | |
OnPreRender |
Executed before the rendering
Styles apply
(Overrides ControlOnPreRender(EventArgs).) | |
OnUnload |
Saving in the FormData
(Overrides ControlOnUnload(EventArgs).) | |
RemoveFile |
Remove the file that is currently attached to the control
| |
Render |
Render
(Overrides WebControlRender(HtmlTextWriter).) | |
SaveControlState |
Control state saving
Update Control State with FormData using context.xml
(Overrides ControlSaveControlState.) |
Name | Description | |
---|---|---|
OnFileDeleted |
Declare an event with arguments we want to send
| |
OnFileUploaded |
Declare an event with arguments we want to send
|