WeOnlyDo! wodWebServer ActiveX - UploadFilename Method
      
 

Description
Called when server needs new name for the file currently being uploaded.

Return Type

None  


Syntax

object.UploadFilename Owner, User, Part



The UploadFilename Method syntax has these parts:

Part Description
object An expression evaluating to an object of type IwodWebNotify.
Owner A wodWebServerCom object. Reference to wodWebServer instance that called this notification method.
User A WebUser object. Reference to the user who sent the request.
Part A WebRequestUploadPart object. Reference to the part that will be uploaded.

Remarks

NOTE: This method is called only if you implemented IwodWebNotify interface in your application, and wodWebServer.Notification property has received reference to instance of your implementation.

This notification method if called during file upload if AutoParse property was set to True. It allows you to specify final destination filename of the upload. This way file is streamed directly to specified file, instead of being dumped to Request.Body, and then extracted later on.

This event may be fired more than once per request, if client uploads more than one file. File will be fully uploaded when new UploadFilename is called (for the new file that is about to be uploaded), or when RequestDone notification is called.