c# - how to know when download is finished -


Hello I am making an online shop, people in this shop should buy the file with the zip extension. They pay with their credit card or other methods and download the product How do I know when I finished product download? Thank you

Unfortunately there is no good way to do this because some clients can not download the file once (For example, DownloadManers have divided the download into several parallel part downloads).

The options are:

  • If it is very important for you that it can be downloaded only once: you simply do not support launching, then you log in The file may be fully downloaded (as the last byte has been sent). This can be a great job if the download is small.
  • Otherwise you can provide some grace data (we generally allow customers to download 5 times the size of the actual download) and log every download attempt.

You should not just calculate download bytes (because the download can be interrupted). And do not determine that all sections have been downloaded once (also because the download can be interrupted)

Just to clarify: This means that you have your own download handler (fileware ) would write.


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -