#222 closed defect (fixed)

webapi should allow save-to-disk

Reported by: warner Owned by: warner
Priority: major Milestone: 0.7.0
Component: code-frontend-web Version: 0.6.1
Keywords: Cc:
Launchpad Bug:

Description

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).

Change History (2)

comment:1 Changed at 2007-12-07T12:43:25Z by zooko

  • Milestone changed from undecided to 0.7.0

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

comment:2 Changed at 2007-12-12T00:05:02Z by warner

  • Resolution set to fixed
  • Status changed from new to closed

done, in b085097adcb38bc7.

Note: See TracTickets for help on using tickets.