I would like to throttle file uploads in Express 4. By that I mean the bytes per second, not the number of API calls.
I want to be able to simulate a slow connection for file uploads so I can test out my progress animations.
I only want to limit the file upload endpoint and not the other endpoints. How can I do this?
Ideally, I'd like to add some middleware on the specific endpoint and specify the transfer speed in bytes/s.
node-throttle
during research earlier but didn't know how I can hook that up to express as middleware on a single endpoint. – Integration