Storage Functions

Description

Functions for working with Storage Connections to upload, download, delete, and list files stored on Cloud Storage services such as AmazonS3, Azure, and SharePoint.

Discussion

Storage is an Alpha Anywhere abstraction for dealing with different types of storage using a standard interface. Alpha Anywhere supports several types of storage, including AmazonS3, Azure, SharePoint, and Disk. The a5storage_* Xbasic functions are for working with files saved to storage in Xbasic scripts. These functions can be used in Ajax Callbacks or the File Upload - User Defined Action Javascript.

Named storage connections are created and managed in the Storage Connection Strings dialog found under the Tools > Storage connection strings menu on the Web Projects Control Panel. See Storage Connections for more information.

Name
Description
a5storage_copyFiles Function

Copies a folder or list of files to Amazon S3, Wasabi, or other Amazon S3 compatible cloud storage services defined using a storage connection string.

a5Storage_deleteItem Function

Delete an item from storage, including files stored in Amazon S3 or Azure.

a5storage_getitem_as_blob Function

Retrieves data from an item in storage, including files stored in Amazon S3 or Azure, and puts the data in a blob variable.

a5storage_getitem_as_file Function

Retrieves data from an item in storage, including files stored in Amazon S3 or Azure, and creates a local file

A5Storage_getItemProperties Function

Gets properties of an item in storage, including files stored in Amazon S3 or Azure.

a5storage_listitems Function

Gets a list of items in a storage container, including listing files stored in Amazon S3 or Azure. You can optionally return objects that start with the specified searchPrefix.

a5Storage_saveData Function

Saves data to storage, including saving files to Amazon S3 or Azure. Same as a5Storage_saveFile(), except takes a blob as input rather than a filename.

a5storage_savefile Function

Saves a file to storage, including saving files to Amazon S3 or Azure

See Also