webapi should allow save-to-disk #222

Closed
opened 2007-12-06 01:40:46 +00:00 by warner · 2 comments

our webapi.txt suggests that you can append '?save=filename' to a GET url to make the server add a Content-Disposition header that says "attachment", which will prompt most browsers to save the file rather than display it.

This option isn't actually implemented yet. Justin was hoping to have an option like this.

I've written the code for it, and tested it manually, but I haven't figured out a way to unit test it yet (twisted.web.client doesn't make it easy to get access to the response headers).

our webapi.txt suggests that you can append '?save=filename' to a GET url to make the server add a Content-Disposition header that says "attachment", which will prompt most browsers to save the file rather than display it. This option isn't actually implemented yet. Justin was hoping to have an option like this. I've written the code for it, and tested it manually, but I haven't figured out a way to unit test it yet (twisted.web.client doesn't make it easy to get access to the response headers).
warner added the
code-frontend-web
major
defect
0.6.1
labels 2007-12-06 01:40:46 +00:00
warner added this to the undecided milestone 2007-12-06 01:40:46 +00:00
warner self-assigned this 2007-12-06 01:40:46 +00:00

This ticket would solve Jonathan's issue, so I'm putting this ticket into Milestone v0.7.0 and bumping #221 out.

This ticket would solve Jonathan's issue, so I'm putting this ticket into Milestone v0.7.0 and bumping #221 out.
zooko modified the milestone from undecided to 0.7.0 2007-12-07 12:43:25 +00:00
Author

done, in changeset:b085097adcb38bc7.

done, in changeset:b085097adcb38bc7.
warner added the
fixed
label 2007-12-12 00:05:02 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tahoe-lafs/trac-2024-07-25#222
No description provided.