eZ Publish Community Project (Legacy Stack) 2013.4
Class

eZFile

class eZFile

Constants

READ_PACKET_SIZE

Number of bytes read per fread() operation.

CLEAN_ON_FAILURE

Flags for file manipulation

APPEND_DEBUG_ON_FAILURE

Flags for file manipulation

Methods

static  downloadHeaders(string $file, bool $isAttachedDownload = true, string $overrideFilename = false, int $startOffset, int $length = false, string $fileSize = false)

Handles the header part of a file transfer to the client

static  downloadContent(string $file, int $startOffset, int $length = false)

Handles the data part of a file transfer to the client

Details

at line 208
static public downloadHeaders(string $file, bool $isAttachedDownload = true, string $overrideFilename = false, int $startOffset, int $length = false, string $fileSize = false)

Handles the header part of a file transfer to the client

Parameters

string $file Path to the local file
bool $isAttachedDownload Determines weather to download the file as an attachment ( download popup box ) or not.
string $overrideFilename Filename to send in headers instead of the actual file's name
int $startOffset Offset to start transfer from, in bytes
int $length Data size to transfer
string $fileSize The file's size. If not given, actual filesize will be queried. Required to work with clusterized files...

See also

download()

at line 265
static public downloadContent(string $file, int $startOffset, int $length = false)

Handles the data part of a file transfer to the client

Parameters

string $file Path to the local file
int $startOffset Offset to start transfer from, in bytes
int $length Data size to transfer

See also

download()