WorkflowFileUpload Methods |
The WorkflowFileUpload type exposes the following members.
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.) |