Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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
add comment

1 Answer

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 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 at 6:51
add comment

Your Answer

 
discard

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.