Ticket #661 (closed Defect: fixed)

Opened 11 years ago

Last modified 8 years ago

Download the file associated to File Topic

Reported by: carolina Owned by: jri
Priority: Major Milestone: Release 4.8.2
Component: DeepaMehta Standard Distribution Version: 4.3
Keywords: Cc: dgf, Malte, JuergeN
Complexity: 3 Area:
Module: deepamehta-files

Description

The user should be able to download a file associated to a File Topic to her local hard disk

Change History

comment:1 Changed 8 years ago by jri

  • Status changed from new to accepted
  • Cc dgf, Malte, JuergeN added
  • Module set to deepamehta-files
  • Priority changed from Minor to Major
  • Milestone set to Release 4.8.2
  • Owner set to jri

comment:2 Changed 8 years ago by Jörg Richter <jri@…>

In c01dff4303675ad2aa576b7f0bde6c1b8096903a/deepamehta:

Files module: add "Download" button (#661).

A File topic features a "Download" button in the detail panel.
Pressing it causes the browser to download (and open/save) the file in its ideosyncratic way.

REST API

A /filerepo/ request can be equipped with a download query parameter.
If present a Content-Disposition: attachment header will be added to the response.
This causes the browser to download the requested file (instead of rendering it).

Example:

GET /filerepo//my-dir/my-song.mp3?download

See #661.

comment:3 Changed 8 years ago by jri

  • Status changed from accepted to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.