Indefero

Indefero Commit Details


Date:2012-01-03 11:12:33 (12 years 11 months ago)
Author:Thomas Keller
Branch:develop, release-1.3
Commit:850be9169542411a72ea606ccd989e2548eaf83f
Parents: 516640b0cd74eaa8d829e378f745d81b9fcdbb53
Message:Send downloads always with content-disposition: attachment header.

Changes:

File differences

src/IDF/Views/Download.php
205205
206206
207207
208
208
209
209210
210211
211212
$path = $upload->getFullPath();
$mime = IDF_FileUtil::getMimeType($path);
$render = new Pluf_HTTP_Response_File($path, $mime[0]);
$render->headers["Content-MD5"] = $upload->md5;
$render->headers['Content-MD5'] = $upload->md5;
$render->headers['Content-Disposition'] = 'attachment; filename="'.$upload->file.'"';
return $render;
}

Archive Download the corresponding diff file

Page rendered in 0.09020s using 13 queries.