-
Notifications
You must be signed in to change notification settings - Fork 0
casper.getFile
Vsevolod Trofimov edited this page Jul 5, 2018
·
2 revisions
casper.getFile(uuid)Downloads the file from casper network, stores it in memory.
-
String— uuid returned bycasper.save.
CasperPromise that resolves with file's content as a Buffer.
CasperPromise that resolves with file's content as a Blob.
casper.getFile(uuid)
.on('progress', done => console.log('download progress', done))
.then(data => { /* do something with the downloaded file */ })See CasperPromise & Events for more detailed explanation on .on and CasperPromise.
If you have any issues / questions / feedback feel free to reach to us via email alyona@casperproject.io.