|
<< Click to Display Table of Contents >> Navigation: Intraweb Components > Standard > TIWFileUploader > Events > OnAsyncUploadCompleted |
OnAsyncUploadCompleted: TUploadCompleteEvent; [Public, Read/Write]
This event is triggered when the file upload completes, BEFORE it is processed or saved by IntraWeb core. You should use this event to save the file to a different location, under a different name, or save it to a blob field in a TDataSet component. You should NOT use this event handler to update other controls, because any changes to other controls won't be sent to the browser. In this case, you should use OnAsyncUploadSuccess and/or OnAsyncUploadError events.
Event parameters:
• DestPath (string): The path that will be used to save the file. When the event fires, it contains user cache directory or AutoSavePath property, when this is set.
• FileName (string): File name that will be used when saving the file. When the event fires, it contains the original file name of the uploaded file.
• SaveFile (Boolean): If true, the file will be saved after the event fires. If false, the file won't be saved. Default True.
• Overwrite (Boolean): If true, a file with the same name in DestPath folder will be overwritten. If false, the file won't be overwritten and an exception is raised - and sent back to the browser. The default Overwrite value equals the value of OverwriteExisting property.