<?php

$meta = wp_get_attachment_metadata( get_the_ID() );
$file = get_attached_file(get_the_ID());
header( sprintf( 'Content-type: %s', mime_content_type( $file ) ) );
header( sprintf( 'Content-Length: %d', filesize( $file ) ) );
readfile( $file );