CURLFile
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
string
getFilename()
Since: 5.5
Get file name
string
getMimeType()
Since: 5.5
Get MIME type
string
getPostFilename()
Since: 5.5
Get file name for POST
void
setMimeType(string $mime_type)
Since: 5.5
Set MIME type
void
setPostFilename(string $posted_filename)
Since: 5.5
Set file name for POST https://secure.php.net/manual/en/curlfile.setpostfilename.php
__wakeup()
Since: 5.5
No description