add download function

There needs to be a download button in order to use.
also make sure you unset mime types in your server config