How do you simulate realistic file download times on your local computer using <input type = "file" / ">?
I am working on a web page with a file upload form that uploads a file via ajax (with jquery.form plugin and update panel <progress>
). I use MAMP, and since the download file is simply copied from one place on my computer to another, the download time is too fast to see a progress bar in action, even if the file is huge.
I remember seeing a screencast, where the host made some changes to his local env, which slowed down the loading process, but a specific screencast escapes me ...
+6
1 answer
You need to install libapache2-mod-bw
Then in your virtualhost configuration file:
<virtualhost *:80> ... BandWidthModule On ForceBandWidthModule On BandWidth all 80000 </virtualhost>
When downloading, a limit of 80 KB / s will be set.
+4