Minima.js API / @minimajs/disk / plugins / uploadProgress
Function: uploadProgress()
ts
function uploadProgress(onProgress): (disk) => void;Upload progress plugin — tracks bytes written to the driver. Uses the storing hook to wrap the stream with a TransformStream that calls onProgress as each chunk passes through.
Parameters
onProgress
(progress) => void
Returns
ts
(disk): void;Parameters
disk
Returns
void