cURL
PHP Manual

The CURLFile class

(PHP 5 >= 5.5.0, PHP 7)

Giriş

CURLFile should be used to upload a file with CURLOPT_POSTFIELDS.

Sınıf Sözdizimi

CURLFile {
/* Özellikler */
public $name ;
public $mime ;
public $postname ;
/* Yöntemler */
public __construct ( string $filename [, string $mimetype [, string $postname ]] )
public string getFilename ( void )
public string getMimeType ( void )
public string getPostFilename ( void )
public void setMimeType ( string $mime )
public void setPostFilename ( string $postname )
public void __wakeup ( void )
}

Özellikler

name

Name of the file to be uploaded.

mime

MIME type of the file (default is application/octet-stream).

postname

The name of the file in the upload data (defaults to the name property).

Ayrıca Bakınız

İçindekiler


cURL
PHP Manual