Downloads Change

time to read 2 min | 210 words

I got a lot of complaints about corrupted files from my server. I always managed to get the files and verify that they were fine, but I kept getting emails from people saying that there is a problem. I recently started using the Cuyahoga download module and I suspect that this is the case. Cracking open the code and looking at what is going on there didn't give a clue. It seemed to be doing all the right things.

There are two reasons for using a download module:

  • You want to know the number of times a file was downloaded.
  • You don't want people to be able to direct download the file.

I'm using the download module for the first reason, I don't really care about the second one. So I just changed the implementation to use Response.Redirect(), which should cause a normal download. I hope this will fix the issue. Cuyahoga is a pleasure to work with, the changes I needed to make were localized and very easy to discover. I'm certainly happy that I'm using it.