Downloadable products in Magento are quite slick, but the way they are handled I have found to be not so. Faced with the prospect of creating many hundred product-file relationships, the admin interface works fine I’m sure a few times through, but it quickly becomes more than one can bear. The best programmer is a lazy programmer, and here are my notes on the process one would go through to associate them programmatically.