I am using Azure Storage JavaScript Client Library for uploading the file to azure storage by referring this link https://dmrelease.blob.core.windows.net/azurestoragejssample/samples/sample-blob.html
The below code is my upload snippet to azure storage (Which takes file and store it in storage)
var speedSummary = blobService.createBlockBlobFromBrowserFile('mycontainer', file.name, file, {blockSize : customBlockSize}, function(error, result, response) {
finishedOrError = true;
if (error) {
// Upload blob failed
} else {
// Upload successfully
}
});
The main problem is when I upload the same file again. It is overwriting the file. Is there any property or header that can be added to prevent overwriting. I want duplicate files also to be stored without overwriting
Please help me to resolve this issue. Thanks in advance.