SAS Network Error

We are trying to upload files directly to azure storage. Its working fine on Google, Firefox, IE10,IE11 and Safari

But its stuck on EDGE. We are uploading files as chunks. Some time its stuck after uploading partially sometimes its not at all uploading anything.

Here are some samples code that we are using for reference.

function initReaderObject(fileToUpload, blockId, fileContent) {
    var readerObject = new FileReader();
    readerObject.onloadend = function (evt) {
        if (evt.target.readyState == FileReader.DONE) { // DONE == 2
            var uri = fileToUpload.sasUrl + '&comp=block&blockid=' + blockId;

            var requestData = new Uint8Array(evt.target.result);
            try {
                var xhr = new XMLHttpRequest();
                xhr.open("PUT", uri, true);
                xhr.setRequestHeader('x-ms-blob-type', 'BlockBlob');
                xhr.setRequestHeader('Access-Control-Allow-Origin', '*');
                xhr.timeout = 3600000;
                xhr.onerror = function (error1) {


                };
                xhr.onreadystatechange = function () {

                    if (xhr.readyState == 4 && xhr.status == 201) {
                        fileToUpload.bytesUploaded += requestData.length;
                        fileToUpload.uploadedIds.push(blockId);
                        postMessage({ obj: fileToUpload, status: 'partial' });
                        if (fileToUpload.uploadedIds.length === fileToUpload.blockIds.length)
                            commitBlockList(fileToUpload);


                    } else if (xhr.readyState == 4 && xhr.status != 201) {
                        postMessage({ obj: fileToUpload, status: 'error' });

                    }  
                }

                if (fileToUpload.ieVersion != -1 && fileToUpload.ieVersion == 10) {
                   //For Safari and IE10
                    xhr.send(requestData);
                } else {

                    xhr.send(new Blob([requestData]));
                }
            } catch (experror) {

            }
        }
    };

    readerObject.readAsArrayBuffer(fileContent);
}

We are making the files as chunks and passing into the above function as filecontent in a loop.

On further investigation we found that we are getting SASNetworkError while uploading through Edge. Can any one help me to resolve this issue?