Query: curlfile
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CURLFILE(3) 1 CURLFILE(3) The CURLFile classINTRODUCTIONCURLFile should be used to upload a file with CURLOPT_POSTFIELDS.CLASS SYNOPSISCURLFile CURLFile Properties o public$name o public$mime o public$postname Methods o public CURLFile::__construct (string $filename, [string $mimetype], [string $postname]) o public string CURLFile::getFilename (void ) o public string CURLFile::getMimeType (void ) o public string CURLFile::getPostFilename (void ) o public void CURLFile::setMimeType (string $mime) o public void CURLFile::setPostFilename (string $postname) o public void CURLFile::__wakeup (void )PROPERTIESo $name -Name of the file to be uploaded. o $mime -MIME type of the file (default is application/octet-stream). o $postname -The name of the file in the upload data (defaults to the $name property).SEE ALSOocurl_setopt(3) PHP Documentation Group CURLFILE(3)