tus / tus-node-server

Node.js tus server, standalone or integrable in any framework, with disk, S3, Azure, and GGC stores.
https://tus.io/
MIT License
824 stars 201 forks source link

Track server-side upload progress #539

Closed TimoStolz closed 9 months ago

TimoStolz commented 10 months ago

I'd like to track upload progress in a database. Maybe, there could be a hook that fires every 10KB, while data is received. Maybe, this could be attached to proxy here.

Maybe you are wondering, why I'd like to persist progress of running uploads. I have an application with several users, submitting large files that take a long time to submit. I'd like to show all their running uploads on an overview page, along with progress.

fenos commented 10 months ago

You can already achieve this by querying the HEAD endpoint of TUS and using the Upload-Offset header returned in the response to determine the current progress of a file upload

fenos commented 9 months ago

Closing for now, let me know if the above solution works for you