Re: tracking the downloading bytes from server (need a early hand)
- Read inline Comments...
> Hope that days gonna fine.......anyone click the link download starts and will take time to finish
> My goals:
> 1. suppose there is a download link in my site
> http://www.mydomainname.com/item/id=robot&file=sharadin.mp3 or
> 2.anyone can download this file by clicking the link, whenever
depending on the size of the file.
>that how much bytes is transferred.
> 3.Now i want to track from server side script or any other means
>site .... removing the link is pretty easy but the problem is how can
> after one successful download i have to remove the link from my
i know that this file is successfully downloaded to the pc once.
> Can i track how many bytes is downloaded from server?---> It is possible as far i can think, i will dicuess this issue in
> his/her download might be interrupted by a disconnection, then itwould not be a successfull download.
> after one 100% download i have to set a flag=1 to remove the linkdynamically.
> Is there any means to identify such a 100% successful download.---> Some way it should be possible like if you handle your download
using PHP Script... where your PHP script open requested file and
transfer bit by bit... and your script updates a static counter in
your shared memory or any physical file...
Client end responsive UI will fetch that counter value after reloading
contents... (it might be using Ajax)
** How to ensure successful download:
If you handle your download using your own script... you know when a
download should be successful...
here is some logic...
for download script
bit = readBit
for request and verify script
if( requestFileSize(...) != userDownloadedFileSize(...))
Hope it will work for you....
nhm tanveer hossain khan(hasan)