Closed (duplicate)
Project:
SSH Key
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
5 Jan 2011 at 00:35 UTC
Updated:
18 Mar 2026 at 22:24 UTC
Jump to comment: Most recent
We should add a ssh-key/%/%/%sshkey/export callback that triggers a download of the key file.
Comments
Comment #1
pwolanin commentedIs this duplicate to what I implemented at http://drupal.org/node/1128446 ?
Comment #2
dave reidWell this would basically have the same thing, but would trigger a Content-Disposition header to cause the browser to download the output. We could easily add the functionality into the view callback in order to do both since we don't need separate view and download permissions.
Comment #3
pwolanin commentedWell, I think with what I implemented you can just right-click "save as", or save it once it's loaded. I don't really see why you need the content disposition header really, unless you have some useful way to set the file name.
Comment #4
dave reidYeah, you can set the 'suggested' filename. I'm still not convinced on a download link, so I'll focus on #1128446: Add a 'view' operation to SSH keys so the view permissions actually do something for now.
Comment #5
colanThere must be a Views plugin for that so marking this as a duplicate of #2318431: Add entity_id and entity_type to available views data. Feel free to reopen if I'm missing something.