IPWorks S3 2020 ActiveX Edition

Questions / Feedback?

CreateObject Method

Creates a new object in the currently selected bucket.

Syntax

s3clientcontrol.CreateObject ObjectName

Remarks

This method creates a new object named Object in the bucket currently selected by Bucket. If there are any metadata items present in the Metadata* properties, they will included in the creation request.

If LocalFile is set the file will be uploaded from the specified path. If LocalFile is not set the data in ObjectData will be used.

To encrypt the file before uploading it, set EncryptionAlgorithm and EncryptionPassword.

Automatic Multipart Uploads

If more than SimpleUploadLimit bytes of data are provided, the control will automatically perform a multipart upload by splitting the data up into parts (sized according to the FragmentSize configuration setting) and uploading them individually. To accomplish this, the control automatically makes calls to StartMultipartUpload, UploadPart, and CompleteMultipartUpload internally; tracks upload state information using the ResumableUploadState configuration setting; and tracks how much data has been uploaded using the StartByte property. The FragmentComplete event will fire after each part is uploaded.

If, during an automatic multipart upload, any individual request fails, the upload can be resumed be calling this method again with the same parameters, so long as ResumableUploadState and StartByte contain the same values as they did when the upload was interrupted.

When an automatic multipart upload completes successfully, ResumableUploadState is cleared and StartByte is reset to 0.

Note: Automatic multipart uploads are not supported when ServiceProvider is spGoogleStorage (2); Google Cloud Storage does not support multipart uploads.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks S3 2020 ActiveX Edition - Version 20.0 [Build 8178]