Discuss this help topic in SecureBlackbox Forum

TElWebDAVServer.OnBeforeUpload

TElWebDAVServer     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


This event is fired when an upload request is received.

Declaration

[C#]
    event TSBWebDAVBeforeUploadEvent OnBeforeUpload;
    delegate void TSBWebDAVBeforeUploadEvent(Object Sender, ref string URL, ref bool Allow);

[VB.NET]
    Event OnBeforeUpload As TSBWebDAVBeforeUploadEvent
    Delegate Sub TSBWebDAVBeforeUploadEvent(ByVal Sender As Object, ByRef URL As String, ByRef Allow As Boolean)

[Pascal]
    property OnBeforeUpload : TSBWebDAVBeforeUploadEvent;
    TSBWebDAVBeforeUploadEvent = procedure(Sender : TObject; var URL : string; var Allow : boolean) of object;

[C++]
    void get_OnBeforeUpload(TSBWebDAVBeforeUploadEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnBeforeUpload(TSBWebDAVBeforeUploadEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBWebDAVBeforeUploadEvent)(void * _ObjectData, TObjectHandle Sender, char * pcURL, int32_t &szURL, int8_t &Allow);

[PHP]
    TSBWebDAVBeforeUploadEvent|callable|NULL get_OnBeforeUpload()
    void set_OnBeforeUpload(TSBWebDAVBeforeUploadEvent|callable|NULL $Value)
    callable TSBWebDAVBeforeUploadEvent(TObject $Sender, string &$URL, bool &$Allow)

[Java]
    TSBWebDAVBeforeUploadEvent getOnBeforeUpload();
    void setOnBeforeUpload(TSBWebDAVBeforeUploadEvent Value);
    TSBWebDAVBeforeUploadEvent.Callback OnBeforeUpload = new TSBWebDAVBeforeUploadEvent.Callback() {
        public void TSBWebDAVBeforeUploadEventCallback(TObject Sender, TSBString URL, TSBBoolean Allow) {
            //...
        }
    }

Parameters

  • URL - the URL of the destination resource.
  • pcURL - the URL of the destination resource.
  • szURL - the length of pcURL in bytes.
  • Allow - the handler should specify, using this parameter, whether the upload is allowed.

Description

    This event is fired when a client tries to upload certain resource.

See also:     OnTransferFinished    

Discuss this help topic in SecureBlackbox Forum