amazon s3 - Download large object from AWS S3 -


i have angular web application in allows users download files locally (installers). files exceed 1.5 gb in size, causes browser crash (chrome) when using 'normal' s3.getobject(opts, function(err, data){}) calls, since entire file binary data cached....?

i have tried use other techniques, streaming (streamsaver.js), no luck.

i trying chunk file data, in follow code, 'httpdata' event not called until entire file's binary data loaded...which seems defeat purpose of chunking. not understanding event, or have misconfigured.

cache.s3.getobject({ bucket: 'anduin-installers', key: filepath })     .on('httpdownloadprogress', function (progress) {        $timeout(function () {           pkg.download.progress = math.floor((progress.loaded / progress.total) * 100.0);        });    })    .on('httpdata', function (chunk, response) {       console.log('???');    })    .on('complete', function (response) {       $timeout(function () {          pkg.download.active = false;          pkg.download.progress = 0;       });   })  .send(); 

any ideas no how make event 'httpdata' fire data chunks received instead of waiting th whole file? or should go solution?

thanks!


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -