source: extensions/ConcoursPhoto/admin/file.php @ 20289

Last change on this file since 20289 was 4319, checked in by tiico, 15 years ago

[ConcoursPhoto] Correct pb with file.php file

File size: 348 bytes
Line 
1<?php
2
3$filename = $_GET['file'];
4
5$dirpath = "../result/";
6               
7$size = filesize($dirpath. $filename);
8
9header('Content-Type: application/octet-stream');
10header('Content-Length: '.$size);
11header('Content-Disposition: attachment; filename='.$filename);
12header('Content-Transfer-Encoding: binary');
13
14readfile($dirpath. $filename);
15
16?>
Note: See TracBrowser for help on using the repository browser.