| 5 upload.module | upload_download() |
1 string reference to 'upload_download'
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));
}
}
}
Login or register to post comments