Discuss this help topic in SecureBlackbox Forum

TElWebDAVClient.Upload

TElWebDAVClient     See also     


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


Uploads data to the server.

Declaration

[C#/Java]
    void Upload(string FilePath, TElWebDAVLockList Locks, TElWebDAVErrorList Errors);
    void Upload(string FilePath, TElWebDAVStorageObject Dest, TElWebDAVErrorList Errors);
    void Upload(string FilePath, string DestURL, TElWebDAVLockList Locks, TElWebDAVErrorList Errors);
    void Upload(byte[] Buffer, int StartIndex, int Count, string DestURL, long RestartFrom, TElWebDAVLockList Locks, TElWebDAVErrorList Errors);
    void Upload(byte[] Buffer, int StartIndex, int Count, TElWebDAVStorageObject Dest, long RestartFrom, TElWebDAVErrorList Errors);
    void Upload(System.IO.Stream Stream, string DestURL, long RestartFrom, TElWebDAVLockList Locks, TElWebDAVErrorList Errors);
    void Upload(System.IO.Stream Stream, TElWebDAVStorageObject Dest, long RestartFrom, TElWebDAVErrorList Errors);

[VB.NET]
    Sub Upload(ByVal FilePath As String, ByVal Locks As TElWebDAVLockList, ByVal Errors As TElWebDAVErrorList)
    Sub Upload(ByVal FilePath As String, ByVal Dest As TElWebDAVStorageObject, ByVal Errors As TElWebDAVErrorList)
    Sub Upload(ByVal FilePath As String, ByVal DestURL As String, ByVal Locks As TElWebDAVLockList, ByVal Errors As TElWebDAVErrorList)
    Sub Upload(ByVal Buffer As Byte(), ByVal StartIndex As Integer, ByVal Count As Integer, ByVal DestURL As String, ByVal RestartFrom As Long, ByVal Locks As TElWebDAVLockList, ByVal Errors As TElWebDAVErrorList)
    Sub Upload(ByVal Buffer As Byte(), ByVal StartIndex As Integer, ByVal Count As Integer, ByVal Dest As TElWebDAVStorageObject, ByVal RestartFrom As Long, ByVal Errors As TElWebDAVErrorList)
    Sub Upload(ByVal Stream As System.IO.Stream, ByVal DestURL As String, ByVal RestartFrom As Long, ByVal Locks As TElWebDAVLockList, ByVal Errors As TElWebDAVErrorList)
    Sub Upload(ByVal Stream As System.IO.Stream, ByVal Dest As TElWebDAVStorageObject, ByVal RestartFrom As Long, ByVal Errors As TElWebDAVErrorList)

[Pascal]
    procedure Upload(const FilePath : string; const Locks : TElWebDAVLockList = nil; const Errors : TElWebDAVErrorList = nil);
    procedure Upload(const FilePath : string; Dest : TElWebDAVStorageObject; const Errors : TElWebDAVErrorList = nil);
    procedure Upload(const FilePath : string; const DestURL : string; const Locks : TElWebDAVLockList = nil; const Errors : TElWebDAVErrorList = nil);
    procedure Upload(Buffer : ByteArray; StartIndex : integer; Count : integer; const DestURL : string; RestartFrom : Int64 = -1; const Locks : TElWebDAVLockList = nil; const Errors : TElWebDAVErrorList = nil);
    procedure Upload(Buffer : ByteArray; StartIndex : integer; Count : integer; Dest : TElWebDAVStorageObject; RestartFrom : Int64 = -1; const Errors : TElWebDAVErrorList = nil);
    procedure Upload(Stream : TStream; const DestURL : string; RestartFrom : Int64 = -1; const Locks : TElWebDAVLockList = nil; const Errors : TElWebDAVErrorList = nil);
    procedure Upload(Stream : TStream; Dest : TElWebDAVStorageObject; RestartFrom : Int64 = -1; const Errors : TElWebDAVErrorList = nil);

[C++]
    void Upload(const std::string &FilePath, TElWebDAVLockList &Locks, TElWebDAVErrorList &Errors);
    void Upload(const std::string &FilePath, TElWebDAVLockList *Locks, TElWebDAVErrorList *Errors);
    void Upload(const std::string &FilePath, TElWebDAVStorageObject &Dest, TElWebDAVErrorList &Errors);
    void Upload(const std::string &FilePath, TElWebDAVStorageObject *Dest, TElWebDAVErrorList *Errors);
    void Upload(const std::string &FilePath, const std::string &DestURL, TElWebDAVLockList &Locks, TElWebDAVErrorList &Errors);
    void Upload(const std::string &FilePath, const std::string &DestURL, TElWebDAVLockList *Locks, TElWebDAVErrorList *Errors);
    void Upload(const std::vector<uint8_t> &Buffer, int32_t StartIndex, int32_t Count, const std::string &DestURL, int64_t RestartFrom, TElWebDAVLockList &Locks, TElWebDAVErrorList &Errors);
    void Upload(const std::vector<uint8_t> &Buffer, int32_t StartIndex, int32_t Count, const std::string &DestURL, int64_t RestartFrom, TElWebDAVLockList *Locks, TElWebDAVErrorList *Errors);
    void Upload(const std::vector<uint8_t> &Buffer, int32_t StartIndex, int32_t Count, TElWebDAVStorageObject &Dest, int64_t RestartFrom, TElWebDAVErrorList &Errors);
    void Upload(const std::vector<uint8_t> &Buffer, int32_t StartIndex, int32_t Count, TElWebDAVStorageObject *Dest, int64_t RestartFrom, TElWebDAVErrorList *Errors);
    void Upload(TStream &Stream, const std::string &DestURL, int64_t RestartFrom, TElWebDAVLockList &Locks, TElWebDAVErrorList &Errors);
    void Upload(TStream *Stream, const std::string &DestURL, int64_t RestartFrom, TElWebDAVLockList *Locks, TElWebDAVErrorList *Errors);
    void Upload(TStream &Stream, TElWebDAVStorageObject &Dest, int64_t RestartFrom, TElWebDAVErrorList &Errors);
    void Upload(TStream *Stream, TElWebDAVStorageObject *Dest, int64_t RestartFrom, TElWebDAVErrorList *Errors);

[PHP]
    void Upload(string $FilePath, TElWebDAVLockList $Locks, TElWebDAVErrorList $Errors)
    void Upload(string $FilePath, TElWebDAVStorageObject $Dest, TElWebDAVErrorList $Errors)
    void Upload(string $FilePath, string $DestURL, TElWebDAVLockList $Locks, TElWebDAVErrorList $Errors)
    void Upload(array of byte|string|NULL $Buffer, integer $StartIndex, integer $Count, string $DestURL, integer $RestartFrom, TElWebDAVLockList $Locks, TElWebDAVErrorList $Errors)
    void Upload(array of byte|string|NULL $Buffer, integer $StartIndex, integer $Count, TElWebDAVStorageObject $Dest, integer $RestartFrom, TElWebDAVErrorList $Errors)
    void Upload(TStream $Stream, string $DestURL, integer $RestartFrom, TElWebDAVLockList $Locks, TElWebDAVErrorList $Errors)
    void Upload(TStream $Stream, TElWebDAVStorageObject $Dest, integer $RestartFrom, TElWebDAVErrorList $Errors)

Parameters

  • FilePath - path to the file to be uploaded.
  • Stream - stream with data to be uploaded.
  • Buffer - buffer with data to be uploaded.
  • StartIndex - index of the first byte of the actual data in Buffer.
  • Count - number of bytes to be read from Buffer.
  • DestURL - destination URL for the new resource. If omitted, the URL is formed from file name and BaseURL.
  • Dest - destination object on the server.
  • Locks - locks to be put on the new resourse.
  • Errors - list where the errors will be stored.
  • RestartFrom - if the data has been partially uploaded, specifies where to restart the upload from. If the value is -1, the upload will restart from the beginning.

Description

    Use this method to upload data to the WebDAV server.

See also:     Download     BaseURL    

Discuss this help topic in SecureBlackbox Forum