Discuss this help topic in SecureBlackbox Forum

TElDropboxDataStorageObject.Write

TElDropboxDataStorageObject     See also     


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


Uploads the file to the storage.

Declaration

[C#/Java]
    void Write(bool Overwrite, string ParentRev, System.IO.Stream Data, TElCustomDataStorageSecurityHandler Handler);
    void Write(System.IO.Stream Data, TElCustomDataStorageSecurityHandler Handler);

[VB.NET]
    Sub Write(ByVal Overwrite As Boolean, ByVal ParentRev As String, ByVal Data As System.IO.Stream, ByVal Handler As TElCustomDataStorageSecurityHandler)
    Sub Write(ByVal Data As System.IO.Stream, ByVal Handler As TElCustomDataStorageSecurityHandler)

[Pascal]
    procedure Write(Overwrite : boolean; const ParentRev : string; Data : TStream; Handler : TElCustomDataStorageSecurityHandler);
    procedure Write(Data : TStream; Handler : TElCustomDataStorageSecurityHandler);

[C++]
    void Write(bool Overwrite, const std::string &ParentRev, TStream &Data, TElCustomDataStorageSecurityHandler &Handler);
    void Write(bool Overwrite, const std::string &ParentRev, TStream *Data, TElCustomDataStorageSecurityHandler *Handler);
    void Write(TStream &Data, TElCustomDataStorageSecurityHandler &Handler);
    void Write(TStream *Data, TElCustomDataStorageSecurityHandler *Handler);

[PHP]
    void Write(bool $Overwrite, string $ParentRev, TStream $Data, TElCustomDataStorageSecurityHandler $Handler)
    void Write(TStream $Data, TElCustomDataStorageSecurityHandler $Handler)

Parameters

  • Data - the data to be uploaded.
  • Handler - the security handler used to perform the operation.
  • Overwrite - if True (default), the existing file will be overwritten; if False, the uploaded file will be automatically renamed, e.g., "test.txt" might be automatically renamed to "test (1).txt".
  • ParentRev - specifies the revision of the file being edited. If ParentRev matches the latest revision, the file will be replaced, and if not, the uploaded file will be automatically renamed, e.g., "test.txt" might be automatically renamed to "test (conflicted copy).txt". If the ParentRev doesn't exist, the file won't be saved, and error 400 will be returned.

Description

    Call this method to upload (edit) files to the storage.

See also:     Read    

Discuss this help topic in SecureBlackbox Forum