I would like to disable file upload in Express 4. By this I mean bytes per second, not the number of API calls.
I want to simulate a slow connection to download files so that I can check the animation of the progress.
I want to limit the endpoint of the file upload, not the other endpoints. How can i do this?
Ideally, I would like to add some middleware to a specific endpoint and indicate the transfer rate in bytes / s.
source share