5.16.2

Methods Azure

Azure

The Azure Blob Storage uploader provides many of the same API methods as the traditional uploader, but there are a few crucial differences to take into account. If you plan to use the Azure uploader, then use the following table as your API reference. All methods outlined in the core or UI documentation are also available in Fine Uploader Azure, unless otherwise noted here.

getBlobName (fileId)

Retrieve the blob name with the associated ID

Parameters:
Integer
fileId

An ID corresponding to a file.


Returns:
String
The blob name associated with the file ID.

getResumableFilesData ()

Returns an array of potentially resumable items. Each resumable is represented by an object with the following properties:

Property Description
name filename
uuid the unique id
partIdx the index of the part where the resume will start from
key The associated file's blob name in Azure Blob Storage
Returns:
Array
An array of resumable items.

setEndpoint (containerUrl[, id])

Modify the container URL where upload requests should be directed. The endpoint for a specific file or blob can be changed by passing in an optional id parameter. An id will always be a number and refers to a single file.

Parameters:
String
containerUrl

The new Azure Blob Storage container URL


Integer
id

An ID corresponding to a file.


setUploadSuccessEndpoint (endpoint[, id])

Modify the endpoint that Fine Uploader should POST to when a file has been successfully uploaded to Azure Blob Storage.

Parameters:
String
endpoint

An endpoint that Fine Uploader should POST to when a file has been successfully uploaded to Azure Blob Storage.


Integer
id

An ID corresponding to a file.


setUploadSuccessParams (newParams[, id])

Set additional parameters for the upload success request. Note that Fine Uploader will still send the container URL, blob name, filename, and UUID as well.

Parameters:
Object
newParams

The additional parameters set for the upload request.


Integer
id

A file id to apply these upload success parameters to.