Add download attribute

Fixes issue #2393