Aurigma Image Uploader 6.1 Dual
Image Uploader Extenders
See Also

Image Uploader embedding scripts library exposes the AmazonS3Extender and NirvanixExtender classes which extend Image Uploader with direct upload to Amazon S3 and Nirvanix storages. See the Uploading to Cloud Storages topic for the detailed instructions on how to use Image Uploader extenders.

This section contains the AmazonS3Extender and NirvanixExtender API reference.

# AmazonS3Extender Members

This extender is defined in the iuembed.AmazonS3.js file of the library and includes two classes: AmazonS3Extender and FileSettings.

##### AmazonS3Extender Class

Extends Image Uploader with a direct upload to Amazon S3 storage.

###### Constructor

Name | Arguments | Description
--- | --- | ---
AmazonS3Extender | writer - An instance of ImageUploaderWriter object. | Creates and initializes an instance of the AmazonS3Extender class.

###### Properties

Name | Description
--- | ---
getAWSAccessKeyId()/setAWSAccessKeyId(value) | Gets or sets the AWS Access Key ID of the owner of the bucket.
getBucket()/setBucket(value) | Gets or sets the bucket name.
getBucketHostName()/setBucketHostName(value) | Gets or sets the custom bucket host name.
getSourceFile() | Gets source file upload settings.
getThumbnail1() | Gets the first thumbnail upload settings.
getThumbnail2() | Gets the second thumbnail upload settings.
getThumbnail3() | Gets the third thumbnail upload settings.

##### FileSettings Class

Represents upload file settings.

###### Properties

Name | Description
--- | ---
getAcl()/setAcl(value) | Gets or sets an Amazon S3 access control list. Options include private, public-read, public-read-write, and authenticated-read.
getKey()/setKey(value) | Gets or sets an Amazon S3 file key.
getPolicy()/setPolicy(value) | Gets or sets the security policy describing what is permitted in the request. Requests without security policy are considered anonymous and only work on publicly writable buckets.
getSignature()/setSignature(value) | Gets or sets the HMAC signature constructed using the secret key of the provided AWSAccessKeyID.

###### Methods

Name | Arguments | Description
--- | --- | ---
addPredefinedProperty | name - a name of metadata property. field - a HTTP POST field name (Description_1, Width_1, Height_1, and so on). | Adds metadata property with predefined value.
addProperty | name - a name of metadata property. value - a value of the custom metadata field. | Adds metadata property.
getProperty | name - a name of metadata property. | Returns a value of metadata property.
removeProperty | name - a name of metadata property. | Removes metadata property.

# NirvanixExtender Members

This extender is defined in the iuembed.Nirvanix.js file of the library and includes the following members.

###### Constructor

Name | Arguments | Description
--- | --- | ---
NirvanixExtender | writer - An instance of ImageUploaderWriter object. | Creates and initializes an instance of the NirvanixExtender class.

###### Properties

Name | Description
--- | ---
getUploadToken()/setUploadToken(value) | Gets or sets an access token to pass into one of the upload methods when performing an upload.
getUploadHost()/setUploadHost(value) | Gets or sets the server to upload to.
getDestFolderPath()/setDestFolderPath(value) | Gets or sets the destination path of the files being uploaded.

###### Events

Name | Description
--- | ---
addServiceError($clientFunction)/removeServiceError($clientFunction) | Adds or removes a handler of the event which fires if some error occurred during upload to Nirvanix service.

# See Also

##### Manual

Uploading to Cloud Storages