Discuss this help topic in SecureBlackbox Forum

TElDropboxDataStorage.WriteObject

TElDropboxDataStorage     See also     


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


Uploads files to the storage.

Declaration

[C#/Java]
    void WriteObject(string Path, bool Overwrite, string ParentRev, System.IO.Stream Data, TElCustomDataStorageSecurityHandler Handler);
    void WriteObject(string Path, System.IO.Stream Data, TElCustomDataStorageSecurityHandler Handler);
    void WriteObject(TElDropboxDataStorageObject Obj, System.IO.Stream Data, TElCustomDataStorageSecurityHandler Handler);
    void WriteObject(TElCustomDataStorageObject Obj, System.IO.Stream Strm, TElCustomDataStorageSecurityHandler Handler);

[VB.NET]
    Sub WriteObject(ByVal Path As String, ByVal Overwrite As Boolean, ByVal ParentRev As String, ByVal Data As System.IO.Stream, ByVal Handler As TElCustomDataStorageSecurityHandler)
    Sub WriteObject(ByVal Path As String, ByVal Data As System.IO.Stream, ByVal Handler As TElCustomDataStorageSecurityHandler)
    Sub WriteObject(ByVal Obj As TElDropboxDataStorageObject, ByVal Data As System.IO.Stream, ByVal Handler As TElCustomDataStorageSecurityHandler)
    Sub WriteObject(ByVal Obj As TElCustomDataStorageObject, ByVal Strm As System.IO.Stream, ByVal Handler As TElCustomDataStorageSecurityHandler)

[Pascal]
    procedure WriteObject(const Path : string; Overwrite : boolean; const ParentRev : string; Data : TStream; Handler : TElCustomDataStorageSecurityHandler);
    procedure WriteObject(const Path : string; Data : TStream; Handler : TElCustomDataStorageSecurityHandler);
    procedure WriteObject(Obj : TElDropboxDataStorageObject; Data : TStream; Handler : TElCustomDataStorageSecurityHandler);

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

[PHP]
    void WriteObject(string $Path, bool $Overwrite, string $ParentRev, TStream $Data, TElCustomDataStorageSecurityHandler $Handler)
    void WriteObject(string $Path, TStream $Data, TElCustomDataStorageSecurityHandler $Handler)
    void WriteObject(TElDropboxDataStorageObject $Obj, TStream $Data, TElCustomDataStorageSecurityHandler $Handler)
    void WriteObject(TElCustomDataStorageObject $Obj, TStream $Strm, TElCustomDataStorageSecurityHandler $Handler)

Parameters

  • Data - the data to be uploaded.
  • Handler - the security handler used to perform the operation.
  • Obj - the storage object where the data should be uploaded.
  • 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.
  • Path - the path to the file being edited.
  • Strm - ...

Description

    Call this method to upload (edit) files to the storage. Depending on the file size and ChunkedUploadThreshold, the files_put or chunked_upload methods will be used automatically.

See also:     ChunkedUploadChunkSize     ChunkedUploadThreshold    

Discuss this help topic in SecureBlackbox Forum