Discuss this help topic in SecureBlackbox Forum

TElFTPSServer.OnFileAllocate

TElFTPSServer     See also     


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


This event is fired when the server receives ALLO command.

Declaration

[C#]
    event TSBFTPSServerFileAllocateEvent OnFileAllocate;
    delegate void TSBFTPSServerFileAllocateEvent(Object Sender, long Size, ref bool Success);

[VB.NET]
    Event OnFileAllocate As TSBFTPSServerFileAllocateEvent
    Delegate Sub TSBFTPSServerFileAllocateEvent(ByVal Sender As Object, ByVal Size As Long, ByRef Success As Boolean)

[Pascal]
    property OnFileAllocate : TSBFTPSServerFileAllocateEvent;
    TSBFTPSServerFileAllocateEvent = procedure (Sender : TObject; Size : Int64; var Success : boolean) of object;

[C++]
    void get_OnFileAllocate(TSBFTPSServerFileAllocateEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnFileAllocate(TSBFTPSServerFileAllocateEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBFTPSServerFileAllocateEvent)(void * _ObjectData, TObjectHandle Sender, int64_t Size, int8_t &Success);

[PHP]
    TSBFTPSServerFileAllocateEvent|callable|NULL get_OnFileAllocate()
    void set_OnFileAllocate(TSBFTPSServerFileAllocateEvent|callable|NULL $Value)
    callable TSBFTPSServerFileAllocateEvent(TObject $Sender, integer $Size, bool &$Success)

[Java]
    TSBFTPSServerFileAllocateEvent getOnFileAllocate();
    void setOnFileAllocate(TSBFTPSServerFileAllocateEvent Value);
    TSBFTPSServerFileAllocateEvent.Callback OnFileAllocate = new TSBFTPSServerFileAllocateEvent.Callback() {
        public void TSBFTPSServerFileAllocateEventCallback(TObject Sender, long Size, TSBBoolean Success) {
            //...
        }
    }

Parameters

  • Size - specifies the size to be allocated.
  • Success - set this parameter to True to grant the permission to upload the file, and to False otherwise.

Description

    This event is fired when the server receives request to allocate disk space for the file to be uploaded to the server.

See also:     Options    

Discuss this help topic in SecureBlackbox Forum