Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am building a Web UI for a device for internet connection and one of the requirements in it is a speed test. I know the basic concept of how speed test works. A file is downloaded for a limited time then the same file is uploaded again and the speed is tracked at regular intervals.

Downloading the file is not an issue, but how am I supposed to upload the file without the client knowing that the file is getting uploaded? I've read through a lot of documentation, but I'm still not able to get the answer to how I will upload the file from clients machine without asking him to select the file.

share|improve this question

Instead of a file, you could have JavaScript generate random data and send it to the server using AJAX. Since the data would be generated from a random number generator, there would be no need to have the user choose a file.

share|improve this answer
yap have tried that ...and its working.just not being able to track the upload speed though – Abhi Nov 9 '13 at 12:07
How are you planning to track the speed of a file upload? – Stephen Ostermiller Nov 17 '13 at 19:39
@Abhi If you know the amount of data you have sent and how long it took to send it you know the upload speed. – Mike Jan 8 '14 at 13:28
I was successful in getting the download and upload speed. But i am facing another problem now. The amount of data stream that i am sending seems to be good enough for IE8 but in IE9 this seems to overload the buffer due to which i am unable to calculate the download speed – Abhi Jan 16 '14 at 6:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.