class CURLFile (View source)

Properties

$name
$mime
$postname

Methods

__construct(string $filename, string $mime_type = null, string $posted_filename = null)

Create a CURLFile object

string
getFilename()

Get file name

string
getMimeType()

Get MIME type

string
getPostFilename()

Get file name for POST

void
setMimeType(string $mime_type)

Set MIME type

void
setPostFilename(string $posted_filename)

Set file name for POST https://secure.php.net/manual/en/curlfile.setpostfilename.php

__wakeup()

No description

Details

__construct(string $filename, string $mime_type = null, string $posted_filename = null)

Since: 5.5

Create a CURLFile object

Parameters

string $filename

Path to the file which will be uploaded.

string $mime_type

[optional]

Mimetype of the file.

string $posted_filename

[optional]

Name of the file.

string getFilename()

Since: 5.5

Get file name

Return Value

string

Returns file name.

string getMimeType()

Since: 5.5

Get MIME type

Return Value

string

Returns MIME type.

string getPostFilename()

Since: 5.5

Get file name for POST

Return Value

string

Returns file name for POST.

void setMimeType(string $mime_type)

Since: 5.5

Set MIME type

Parameters

string $mime_type

Return Value

void

void setPostFilename(string $posted_filename)

Since: 5.5

Parameters

string $posted_filename

Return Value

void

__wakeup()

Since: 5.5

No description