function upload_download in Drupal 4
Same name and namespace in other branches
- 5 modules/upload/upload.module \upload_download()
1 string reference to 'upload_download'
- upload_menu in modules/
upload.module - Implementation of hook_menu().
File
- modules/
upload.module, line 175 - File-handling and attaching files to nodes.
Code
function upload_download() {
foreach ($_SESSION['file_previews'] as $file) {
if ($file->_filename == $_GET['q']) {
file_transfer($file->filepath, array(
'Content-Type: ' . mime_header_encode($file->filemime),
'Content-Length: ' . $file->filesize,
));
}
}
}