UpdateBlobInfo Method
Updates a blob's information.
Syntax
azureblob.updateBlobInfo(blob, [callback])
Callback
The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).
The callback for this method is defined as:
function(err){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'err' has 2 properties which hold detailed information:
err.code err.message
Remarks
This method updates the information of the specified Blob in the container currently selected by Container.
There must be an item in the Blob* properties whose BlobName property matches the specified Blob name (and whose BlobSnapshot property is empty) before this method is called.
When this method is called, the values of the following propertys on the aforementioned item are sent to the server (note that the last two are indexed configuration settings):
- BlobContentDisposition
- BlobContentEncoding
- BlobContentMD5
- BlobContentType
- BlobCacheControl[i]
- BlobContentLanguage[i]
Note that it is not possible to do a partial update of a blob's information. That is, all of the blob's current values for the aforementioned propertys will be replaced with the values sent in the request. To prevent data loss, applications should call GetBlobInfo to retrieve the blob's current information, and then modify it as desired, before using this method.
If the specified blob has an active lease, its lease Id must be specified using LeaseId, or the request will fail.