Discuss this help topic in SecureBlackbox Forum

TElWebDAVClient.UploadFile

TElWebDAVClient     See also     


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


Uploads a file to the server.

Declaration

[C#]
    void UploadFile(string LocalFileName, string URL, TElWebDAVLockList Locks, TElWebDAVErrorList Errors);
    void UploadFile(string LocalFileName, string URL, TSBFileTransferMode Mode, TElWebDAVLockList Locks, TElWebDAVErrorList Errors);
    void UploadFile(string LocalFileName, string URL, TSBFileTransferMode Mode, long RestartFrom, TElWebDAVLockList Locks, TElWebDAVErrorList Errors);

[VB.NET]
    Sub UploadFile(ByVal LocalFileName As String, ByVal URL As String, ByVal Locks As TElWebDAVLockList, ByVal Errors As TElWebDAVErrorList)
    Sub UploadFile(ByVal LocalFileName As String, ByVal URL As String, ByVal Mode As TSBFileTransferMode, ByVal Locks As TElWebDAVLockList, ByVal Errors As TElWebDAVErrorList)
    Sub UploadFile(ByVal LocalFileName As String, ByVal URL As String, ByVal Mode As TSBFileTransferMode, ByVal RestartFrom As Long, ByVal Locks As TElWebDAVLockList, ByVal Errors As TElWebDAVErrorList)

[Pascal]
    procedure UploadFile(LocalFileName, URL : string; Locks : TElWebDAVLockList; Errors : TElWebDAVErrorList);
    procedure UploadFile(LocalFileName, URL : string; Mode : TSBFileTransferMode; Locks : TElWebDAVLockList; Errors : TElWebDAVErrorList);
    procedure UploadFile(LocalFileName, URL : string; Mode : TSBFileTransferMode; RestartFrom : Int64; Locks : TElWebDAVLockList; Errors : TElWebDAVErrorList);

[C++]
    void UploadFile(const std::string &LocalFileName, const std::string &URL, TElWebDAVLockList &Locks, TElWebDAVErrorList &Errors);
    void UploadFile(const std::string &LocalFileName, const std::string &URL, TElWebDAVLockList *Locks, TElWebDAVErrorList *Errors);
    void UploadFile(const std::string &LocalFileName, const std::string &URL, TSBFileTransferMode Mode, TElWebDAVLockList &Locks, TElWebDAVErrorList &Errors);
    void UploadFile(const std::string &LocalFileName, const std::string &URL, TSBFileTransferMode Mode, TElWebDAVLockList *Locks, TElWebDAVErrorList *Errors);
    void UploadFile(const std::string &LocalFileName, const std::string &URL, TSBFileTransferMode Mode, int64_t RestartFrom, TElWebDAVLockList &Locks, TElWebDAVErrorList &Errors);
    void UploadFile(const std::string &LocalFileName, const std::string &URL, TSBFileTransferMode Mode, int64_t RestartFrom, TElWebDAVLockList *Locks, TElWebDAVErrorList *Errors);

[PHP]
    void UploadFile(string $LocalFileName, string $URL, TElWebDAVLockList $Locks, TElWebDAVErrorList $Errors)
    void UploadFile(string $LocalFileName, string $URL, integer $Mode, TElWebDAVLockList $Locks, TElWebDAVErrorList $Errors)
    void UploadFile(string $LocalFileName, string $URL, integer $Mode, integer $RestartFrom, TElWebDAVLockList $Locks, TElWebDAVErrorList $Errors)

[Java]
    not available

Parameters

  • LocalFileName - the name of the file in the local file system.
  • URL - the URL of the new resource.
  • Locks - the list of locks to be put on the new resource.
  • Errors - the list of errors returned by the server.
  • Mode - specifies the file transfer mode.
  • RestartFrom - Specifies the position from which the data transfer should be resumed. Set to -1 to start from the beginning.

TSBFileTransferMode values

Description

    Use this method to upload files to the server.

See also:     UploadStream    

Discuss this help topic in SecureBlackbox Forum