Discuss this help topic in SecureBlackbox Forum

TElSimpleFTPSClient.UploadFile

TElSimpleFTPSClient     See also     


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


Uploads the file to the server.

Declaration

[C#]
    void UploadFile(string LocalFileName, string RemoteFileName);
    void UploadFile(string LocalFileName, string RemoteFileName, TSBFileTransferMode Mode);
    void UploadFile(string LocalFileName, string RemoteFileName, TSBFileTransferMode Mode, long RestartFrom);

[VB.NET]
    Sub UploadFile(ByVal LocalFileName As String, ByVal RemoteFileName As String)
    Sub UploadFile(ByVal LocalFileName As String, ByVal RemoteFileName As String, ByVal Mode As TSBFileTransferMode)
    Sub UploadFile(ByVal LocalFileName As String, ByVal RemoteFileName As String, ByVal Mode As TSBFileTransferMode, ByVal RestartFrom As Long)

[Pascal]
    procedure UploadFile(LocalFileName, RemoteFileName : string);
    procedure UploadFile(LocalFileName, RemoteFileName : string; Mode : TSBFileTransferMode);
    procedure UploadFile(LocalFileName, RemoteFileName : string; Mode : TSBFileTransferMode; RestartFrom : Int64);

[C++]
    void UploadFile(const std::string &LocalFileName, const std::string &RemoteFileName);
    void UploadFile(const std::string &LocalFileName, const std::string &RemoteFileName, TSBFileTransferMode Mode);
    void UploadFile(const std::string &LocalFileName, const std::string &RemoteFileName, TSBFileTransferMode Mode, int64_t RestartFrom);

[PHP]
    void UploadFile(string $LocalFileName, string $RemoteFileName)
    void UploadFile(string $LocalFileName, string $RemoteFileName, integer $Mode)
    void UploadFile(string $LocalFileName, string $RemoteFileName, integer $Mode, integer $RestartFrom)

[Java]
    void uploadFile(String LocalFileName, String RemoteFileName, TSBFileTransferMode Mode, long RestartFrom);
    void uploadFile(String LocalFileName, String RemoteFileName);
    void uploadFile(String LocalFileName, String RemoteFileName, TSBFileTransferMode Mode);

Parameters

  • LocalFileName - name of the file to be uploaded
  • RemoteFileName - remote name of the uploaded file
  • Mode - specifies what to do if the file with the same name already exists
  • RestartFrom - can be used to resume broken transfer operation.When RestartFrom is set to non-zero positive value, the file being transferred is read starting from RestartFrom position and is written also starting from RestartFrom position.

Values

Description

    Use this method to send file or its part to the server.

See also:     About file system adapters     DownloadFile     UploadFiles     UploadStream     Send     FileSystemAdapter    

Discuss this help topic in SecureBlackbox Forum