file_transfer

function file_transfer

file_transfer($uri, $headers)

Transfers a file to the client using HTTP.

Pipes a file through Drupal to the client.

Parameters

$uri: String specifying the file URI to transfer.

$headers: An array of HTTP headers to send along with file.

Related topics

File

includes/file.inc, line 1955
API for handling file uploads and server file management.

Code

登录查看完整内容