Progress bar - uploading big files with IPFS JS-API

So I’m working on a project with IPFS, but I’m having trouble creating a simple pregress bar.
I hardly found material teaching how to do one with the ipfs api.

I found this way:

 let progress_func = function (len) {
   console.log ("File progress:", len)
ipfs.add (file_send, {progress: progress_func}, (err, json) => {...};

but this only returns me all values after the file has been completely uploaded. So it’s no use.


may be a github issue can be intresting :