Back to product page

UploadFilename event


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

Syntax

  • Basic
Private Sub object_UploadFilename (ByRef User, ByRef Part)
The UploadFilename(object,User,Part) syntax has these parts:
objectAn expression evaluating to an object of type wodWebServer
UserWebUser object. Reference to the user who sent the request.
PartWebRequestUploadPart object. Reference to the part that will be uploaded.

Remarks

This event if fired 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 fired (for the new file that is about to be uploaded), or when RequestDone is fired.

Platforms

Windows